mirror of
https://codeberg.org/spire/who.git
synced 2026-06-03 10:14:06 +02:00
nix based ci
This commit is contained in:
parent
ae9fed460b
commit
55f8357128
2 changed files with 11 additions and 7 deletions
14
.github/workflows/compile.yml
vendored
14
.github/workflows/compile.yml
vendored
|
|
@ -4,20 +4,24 @@ on:
|
|||
push:
|
||||
paths:
|
||||
- "**.sp"
|
||||
- ".github/workflows/*"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Compile sourcepawn
|
||||
uses: spiretf/spcomp@v0.1
|
||||
- uses: cachix/install-nix-action@v20
|
||||
- uses: icewind1991/attic-action@v1
|
||||
with:
|
||||
source: "./plugin/who.sp"
|
||||
target: "./plugin/who.smx"
|
||||
|
||||
name: ci
|
||||
instance: https://cache.icewind.me
|
||||
authToken: "${{ secrets.ATTIC_TOKEN }}"
|
||||
- run: nix build .#who
|
||||
- run: cp result plugin/who.smx
|
||||
- name: Commit files
|
||||
run: |
|
||||
git add plugin/who.smx
|
||||
git config --local user.email "action@github.com"
|
||||
git config --local user.name "GitHub Action"
|
||||
git commit -m "Compile sourcepawn" -a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue