Adding aarch64-linux architecture support #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: artifact | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
arch: | |
- 'x86_64-linux' | |
- 'aarch64-linux' | |
steps: | |
- uses: actions/checkout@v3 | |
- run: sudo apt-get install -y qemu-user-static | |
- uses: DeterminateSystems/nix-installer-action@main | |
with: | |
extra-conf: | | |
system = ${{ matrix.arch }} | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Building tarball for ${{ matrix.arch }} | |
run: nix build | |
- name: Uploading artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: nixos-system-${{ matrix.arch }}.tar.xz | |
path: result/tarball/nixos-system-${{ matrix.arch }}.tar.xz |