@@ -1,27 +1,16 @@
|
|||||||
# Gitea Actions, triggered only by pushed v* tags (the runner is slow): tests, then release. Every job runs in a pinned nixos/nix container with plain shell steps only:
|
# Gitea Actions, triggered only by pushed v* tags (the runner is slow): tests, then release.
|
||||||
# the runner image has no Node, so JavaScript actions (actions/checkout, ...) cannot run.
|
# Runs on the NixOS host runner (label `nixos`, host mode) with plain shell steps only.
|
||||||
# Tooling comes from devbox (nix run nixpkgs#devbox), which honours devbox.lock like local runs.
|
# Tooling comes from the host's devbox, which honours devbox.lock like local runs.
|
||||||
# Release upload goes through the Gitea REST API with the built-in job token.
|
# Release upload goes through the Gitea REST API with the built-in job token.
|
||||||
name: ci
|
name: ci
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags: ["v*"]
|
tags: ["v*"]
|
||||||
|
|
||||||
env:
|
|
||||||
NIX_CONFIG: |
|
|
||||||
experimental-features = nix-command flakes
|
|
||||||
sandbox = false
|
|
||||||
filter-syscalls = false
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: nixos
|
||||||
container: nixos/nix:2.36.0
|
|
||||||
steps:
|
steps:
|
||||||
- name: Prepare tools
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
nix profile install nixpkgs#git nixpkgs#curl nixpkgs#devbox
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|||||||
Reference in New Issue
Block a user