mirror of
https://codeberg.org/spire/nix.git
synced 2026-06-03 09:54:19 +02:00
ci updates
This commit is contained in:
parent
4593633430
commit
1b72573e26
3 changed files with 40 additions and 59 deletions
38
.forgejo/workflows/ci.yml
Normal file
38
.forgejo/workflows/ci.yml
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
name: "CI"
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
checks:
|
||||||
|
runs-on: nix
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: https://codeberg.org/icewind/attic-action@v1
|
||||||
|
with:
|
||||||
|
name: link
|
||||||
|
instance: https://cache.icewind.link
|
||||||
|
authToken: "${{ secrets.ATTIC_TOKEN }}"
|
||||||
|
- run: nix flake check --keep-going
|
||||||
|
|
||||||
|
sourcemod:
|
||||||
|
runs-on: nix
|
||||||
|
needs: [checks]
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sdk:
|
||||||
|
- tf2
|
||||||
|
- css
|
||||||
|
- hl2dm
|
||||||
|
- mcv
|
||||||
|
- blade
|
||||||
|
- dods
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: https://codeberg.org/icewind/attic-action@v1
|
||||||
|
with:
|
||||||
|
name: link
|
||||||
|
instance: https://cache.icewind.link
|
||||||
|
authToken: "${{ secrets.ATTIC_TOKEN }}"
|
||||||
|
- run: nix build .#sourcemods.x86_64-linux.${{ matrix.sdk }}
|
||||||
58
.github/workflows/ci.yml
vendored
58
.github/workflows/ci.yml
vendored
|
|
@ -1,58 +0,0 @@
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
name: CI
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
ambuild:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- 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
|
|
||||||
|
|
||||||
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=$(nix eval --json ".#matrix")" | tee $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
sourcemod:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: [sdk-matrix, ambuild]
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix: ${{fromJson(needs.sdk-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 .#packages.${{ matrix.system }}.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
|
|
||||||
|
|
@ -25,7 +25,8 @@
|
||||||
sourcemods = pkgs.lib.mapAttrs (name: sdk: pkgs.sourcemod.override {sdks = {${name} = sdk;};}) pkgs.hl2sdk;
|
sourcemods = pkgs.lib.mapAttrs (name: sdk: pkgs.sourcemod.override {sdks = {${name} = sdk;};}) pkgs.hl2sdk;
|
||||||
metamods = pkgs.lib.mapAttrs (name: sdk: pkgs.metamod-source.override {sdks = {${name} = sdk;};}) pkgs.hl2sdk;
|
metamods = pkgs.lib.mapAttrs (name: sdk: pkgs.metamod-source.override {sdks = {${name} = sdk;};}) pkgs.hl2sdk;
|
||||||
};
|
};
|
||||||
packages = inheritPkgs ["ambuild" "sourcemod" "sourcepawn" "sourcemod-includes" "sourcemod-include-library"];
|
|
||||||
|
packages = inheritPkgs ["ambuild" "sourcepawn" "sourcemod-includes" "sourcemod-include-library"];
|
||||||
|
|
||||||
checks = {
|
checks = {
|
||||||
buildTestScript = {pkgs, ...}:
|
buildTestScript = {pkgs, ...}:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue