aboutsummaryrefslogtreecommitdiffhomepage
path: root/.gitea/workflows/release.yml
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-02-15 20:49:28 +0900
committerOphestra <cat@gensokyo.uk>2025-02-15 22:58:04 +0900
commitf545e154f0c6e838cee130c3d1fae47687e5fdc4 (patch)
treebbc2066d2b52c96e9fa48a2f493aede1275ec2cf /.gitea/workflows/release.yml
parent268a90f1a505a00e1eab794e9c1760fdff5592d3 (diff)
workflows: use native nix runner
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to '.gitea/workflows/release.yml')
-rw-r--r--.gitea/workflows/release.yml25
1 files changed, 1 insertions, 24 deletions
diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml
index c278d8c9..c6c1ddae 100644
--- a/.gitea/workflows/release.yml
+++ b/.gitea/workflows/release.yml
@@ -8,9 +8,7 @@ on:
jobs:
release:
name: Create release
- runs-on: ubuntu-latest
- permissions:
- actions: write
+ runs-on: nix
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -20,27 +18,6 @@ jobs:
with:
go-version: '>=1.23.0'
- - name: Install Nix
- uses: cachix/install-nix-action@v30
- with:
- # explicitly enable sandbox
- install_options: --daemon
- extra_nix_config: |
- sandbox = true
- system-features = nixos-test benchmark big-parallel kvm
- enable_kvm: true
-
- - name: Ensure environment
- run: >-
- apt-get update && apt-get install -y sqlite3
- if: ${{ runner.os == 'Linux' }}
-
- - name: Restore Nix store
- uses: nix-community/cache-nix-action@v5
- with:
- primary-key: build-dist-${{ runner.os }}-${{ hashFiles('**/*.nix') }}
- restore-prefixes-first-match: build-dist-${{ runner.os }}-
-
- name: Build for release
run: nix build --print-out-paths --print-build-logs .#dist