Add Nix-based CI workflows

Co-authored-by: dichhead <330471626+dichhead@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]anddichhead authored and GitHub committed 2026-09-19 13:49:40 +00:00
1 parent b356baa5e5
commit 9a926badf6
7 files changed
+129 -39

No files matched your search

+14 -13
View File
@@ -33,6 +33,9 @@ jobs:
runs-on: ubuntu-22.04
permissions:
contents: write
defaults:
run:
shell: 'nix develop --command bash --noprofile --norc -euo pipefail {0}'
steps:
- name: Checkout
@@ -43,22 +46,12 @@ jobs:
# release tag; a shallow clone would label the build `+g<hash>`.
fetch-depth: 0
- uses: ./.github/actions/setup-nix
- name: Validate package versions
id: version
shell: bash
run: python3 scripts/release.py versions --tag "$RELEASE_TAG"
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install dependencies
run: |
sudo apt-get update -q
sudo apt-get install -y \
libgl1-mesa-dev libx11-dev libxcursor-dev libxi-dev libxrandr-dev \
libxkbcommon-dev libwayland-dev libfontconfig1-dev libfreetype6-dev \
librsvg2-bin fuse libfuse2
- name: Build
env:
OCS_PATREON_TOKEN: ${{ secrets.OCS_PATREON_TOKEN }}
@@ -122,6 +115,9 @@ jobs:
permissions:
actions: read
contents: write
defaults:
run:
shell: 'nix develop --command bash --noprofile --norc -euo pipefail {0}'
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
@@ -134,9 +130,10 @@ jobs:
# release tag; a shallow clone would label the build `+g<hash>`.
fetch-depth: 0
- uses: ./.github/actions/setup-nix
- name: Validate package versions
id: version
shell: bash
run: python3 scripts/release.py versions --tag "$RELEASE_TAG"
- name: Download shared Linux payload
@@ -542,10 +539,14 @@ jobs:
runs-on: ubuntu-22.04
permissions:
contents: read
defaults:
run:
shell: 'nix develop --command bash --noprofile --norc -euo pipefail {0}'
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.commit || github.sha }}
- uses: ./.github/actions/setup-nix
- name: Verify native release assets and notes
env:
GH_TOKEN: ${{ github.token }}