ci: Verify cargo-binstall
on alpine
only
#43
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: check-run-nix | |
on: | |
push: | |
branches: | |
- main | |
defaults: | |
run: | |
shell: bash -xe {0} | |
jobs: | |
check-run-nix: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- target: .#obeliskGlibcNixDev | |
runner: ubuntu-24.04 | |
- target: .#obeliskMuslDev | |
runner: ubuntu-22.04 | |
runs-on: ${{ matrix.runner }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v30 | |
with: | |
extra_nix_config: "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}" | |
- name: Create temp directory | |
run: mkdir temp | |
- name: Build the binary | |
working-directory: temp | |
run: nix build ${{ matrix.target }} | |
- name: Run the binary | |
working-directory: temp | |
run: | | |
./result/bin/obelisk -v | |
./result/bin/obelisk server generate-config | |
./result/bin/obelisk server verify |