Skip to content

Commit

Permalink
ci: add macOS via Nix testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan-Velickovic committed Sep 23, 2023
1 parent 794ce77 commit 8211156
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,26 @@ jobs:
uses: actions/upload-artifact@v3
with:
path: build_*/loader.img
build_macos_x86_64_nix:
name: Build and run VMM examples (macOS x86-64 via Nix)
# Don't want any forks or PRs to run this workflow
if: ${{ github.repository_owner == 'Ivan-Velickovic' }}
runs-on: macos-12
steps:
- name: Checkout seL4CP VMM repository
uses: actions/checkout@v3
- name: Download seL4CP SDK
run: ./ci/acquire_sdk.sh sel4cp-sdk.zip ${{ secrets.GITHUB_TOKEN }} macos-x86-64
shell: bash
- name: Extract seL4CP SDK
run: unzip sel4cp-sdk.zip && tar -xf sel4cp-sdk-1.2.6.tar.gz
- name: Install Nix
uses: cachix/install-nix-action@v18
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Build and run VMM examples
run: nix-shell --pure --run "./ci/examples.sh ${PWD}/sel4cp-sdk-1.2.6"
- name: Upload built system images
uses: actions/upload-artifact@v3
with:
path: build_*/loader.img

0 comments on commit 8211156

Please sign in to comment.