mirror of
https://codeberg.org/spire/nix.git
synced 2026-06-03 18:04:10 +02:00
init
This commit is contained in:
commit
e948e00e9b
14 changed files with 447 additions and 0 deletions
73
.github/workflows/ci.yml
vendored
Normal file
73
.github/workflows/ci.yml
vendored
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
on: [push, pull_request]
|
||||
|
||||
name: CI
|
||||
|
||||
jobs:
|
||||
sdk-matrix:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: cachix/install-nix-action@v20
|
||||
- id: set-matrix
|
||||
run: echo "matrix={\"sdk\":$(nix eval --json ".#sdks.x86_64-linux")}" | tee $GITHUB_OUTPUT
|
||||
|
||||
hl2sdk:
|
||||
runs-on: ubuntu-latest
|
||||
needs: sdk-matrix
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix: ${{fromJson(needs.hl2sdk-matrix.outputs.matrix)}}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: cachix/install-nix-action@v20
|
||||
- uses: icewind1991/attic-action@v1
|
||||
with:
|
||||
name: ci
|
||||
instance: https://cache.icewind.me
|
||||
authToken: '${{ secrets.ATTIC_TOKEN }}'
|
||||
- run: nix build .#hl2sdk.${{ matrix.sdk }}
|
||||
|
||||
ambuild:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: cachix/install-nix-action@v20
|
||||
- uses: icewind1991/attic-action@v1
|
||||
with:
|
||||
name: ci
|
||||
instance: https://cache.icewind.me
|
||||
authToken: '${{ secrets.ATTIC_TOKEN }}'
|
||||
- run: nix build .#ambuild
|
||||
|
||||
sourcemod:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [hl2sdk-matrix, ambuild, hl2sdk]
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix: ${{fromJson(needs.hl2sdk-matrix.outputs.matrix)}}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: cachix/install-nix-action@v20
|
||||
- uses: icewind1991/attic-action@v1
|
||||
with:
|
||||
name: ci
|
||||
instance: https://cache.icewind.me
|
||||
authToken: '${{ secrets.ATTIC_TOKEN }}'
|
||||
- run: nix build .#sourcemods.${{ matrix.sdk }}
|
||||
|
||||
sourcepawn:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [ambuild]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: cachix/install-nix-action@v20
|
||||
- uses: icewind1991/attic-action@v1
|
||||
with:
|
||||
name: ci
|
||||
instance: https://cache.icewind.me
|
||||
authToken: '${{ secrets.ATTIC_TOKEN }}'
|
||||
- run: nix build .#sourcepawn
|
||||
- name: Compile test script
|
||||
run: nix build .#buildTestScript
|
||||
Loading…
Add table
Add a link
Reference in a new issue