Skip to content

Commit

Permalink
Add build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Defelo committed Dec 24, 2023
1 parent 7d76fd7 commit 5bf2362
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: build

on:
push:
branches: [develop]
pull_request:

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
name: build (${{ matrix.system }})
strategy:
matrix:
system: [x86_64-linux, aarch64-linux]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- run: sudo apt-get install -y qemu-user-static
- name: Setup Nix
uses: cachix/install-nix-action@v24
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: |
system = ${{ matrix.system }}
- name: Setup Cachix
uses: cachix/cachix-action@v13
with:
name: sandkasten
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build

0 comments on commit 5bf2362

Please sign in to comment.