Skip to content

Commit

Permalink
Add macos-11 runner to examples job
Browse files Browse the repository at this point in the history
All examples are already using 21.11 nixpkgs, so that shouldn't prevent
them from working on Big Sur.

Python example is broken because of #186 and Rust one because of #187,
so skip them for now.

Fixes #176
  • Loading branch information
YorikSar committed Feb 17, 2022
1 parent d3ecfd7 commit b206f91
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
matrix:
os:
- ubuntu-latest # TODO: this job does not yet work on any version of macOS
- macos-11
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2.4.0
Expand All @@ -56,6 +57,18 @@ jobs:
for dir in *; do
cd "$dir"
echo
if [ "${{ runner.os }}" == "macOS" ]; then
case "$dir" in
# Python - https://github.com/tweag/rules_nixpkgs/issues/186
# Rust - https://github.com/tweag/rules_nixpkgs/issues/187
python | \
rust )
echo Skipping $(head -n1 README.md) with Nix
cd ..
continue
;;
esac
fi
echo Running $(head -n1 README.md) with Nix
nix-shell --command 'bazel run --config=nix :hello'
# TODO: all toolchains should run without Nixpkgs
Expand All @@ -64,6 +77,18 @@ jobs:
for dir in cc go rust; do
cd "$dir"
echo
if [ "${{ runner.os }}" == "macOS" ]; then
case "$dir" in
# Python - https://github.com/tweag/rules_nixpkgs/issues/186
# Rust - https://github.com/tweag/rules_nixpkgs/issues/187
python | \
rust )
echo Skipping $(head -n1 README.md) without Nix
cd ..
continue
;;
esac
fi
echo Running $(head -n1 README.md) without Nix
bazel run :hello
cd ..
Expand Down

0 comments on commit b206f91

Please sign in to comment.