Skip to content

Commit

Permalink
ci: add macos support via github actions
Browse files Browse the repository at this point in the history
Install newer version bash via homebrew.
Also print debug info about the current bash.
  • Loading branch information
tmfink committed Apr 21, 2024
1 parent e962232 commit 6d9e8bc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Expand Up @@ -18,6 +18,7 @@ jobs:
os:
- ubuntu-latest
- windows-latest
- macos-latest
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -29,6 +30,10 @@ jobs:
toolchain: ${{ matrix.rust.version }}
override: true

- name: install recent bash on macos
if: ${{ startsWith(matrix.os, 'macos') }}
run: brew install bash

- name: test
run: env ${{ matrix.rust.env }} ./capstone-rs/ci/test.sh

Expand Down
6 changes: 6 additions & 0 deletions capstone-rs/ci/test.sh
Expand Up @@ -14,6 +14,12 @@
# - SKIP_CARGO_UPDATE: set to disable "cargo update" part of tests
# - VALGRIND_TESTS: run tests under Valgrind

# Useful debug info
echo "BASH=${BASH}"
echo "BASH_VERSION=${BASH_VERSION}"
echo "BASH_OPTIONS=$-"
echo "BASH_COMPAT=${BASH_COMPAT}"

set -euo pipefail
set -x

Expand Down

0 comments on commit 6d9e8bc

Please sign in to comment.