Merge pull request #247 from nvim-neorocks/mj/push-zwtpuxuotmkr #130
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: "Nix release build" | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
name: ${{ matrix.job.target }} | |
runs-on: ${{ matrix.job.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
job: | |
- { os: ubuntu-20.04, target: x86_64-linux } | |
- { os: macos-13, target: x86_64-darwin } | |
- { os: macos-14, target: aarch64-darwin } | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@v16 | |
- uses: cachix/cachix-action@v15 | |
with: | |
name: neorocks | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Build package | |
run: nix build ".#packages.${{matrix.job.target}}.default" -Lv --accept-flake-config | |
shell: bash | |
- name: Build devShell | |
run: nix build ".#devShells.${{matrix.job.target}}.default" -Lv --accept-flake-config | |
shell: bash |