Skip to content

Commit 050f01b

Browse files
committed
temp
temp
1 parent 96f6652 commit 050f01b

2 files changed

Lines changed: 61 additions & 55 deletions

File tree

.github/workflows/build-images.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Build Images
2+
on:
3+
push:
4+
branches: [ "main", "rewrite" ]
5+
6+
jobs:
7+
build:
8+
name: Build ${{ matrix.system }}
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
include:
14+
- system: x86_64-linux
15+
os: ubuntu-latest
16+
- system: aarch64-linux
17+
os: ubuntu-24.04-arm
18+
permissions:
19+
contents: write
20+
id-token: write
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Maximize Disk Space
25+
uses: wimpysworld/nothing-but-nix@main
26+
27+
- name: Install Nix
28+
uses: DeterminateSystems/determinate-nix-action@main
29+
30+
- name: Magic Nix Cache
31+
uses: DeterminateSystems/magic-nix-cache-action@main
32+
33+
- name: Build All Images
34+
run: |
35+
SHORT_SHA=$(git rev-parse --short HEAD)
36+
# We force KVM feature so Nix falls back to emulation on non-KVM CI
37+
nix build .#images.${{ matrix.system }}.all --option system-features "nixos-test benchmark big-parallel kvm"
38+
39+
mkdir -p versioned-dist/
40+
cp -rL result/* versioned-dist/
41+
mv versioned-dist/nixos.qcow2 versioned-dist/${{ github.ref_name }}-$SHORT_SHA-${{ matrix.system }}.qcow2
42+
43+
# Prepare artifacts for rolling release (latest-branch)
44+
mkdir -p rolling-dist/images/${{ matrix.system }}
45+
cp -rL result/* rolling-dist/images/${{ matrix.system }}/
46+
47+
- name: Create Versioned Release (Pinned)
48+
uses: softprops/action-gh-release@v2
49+
with:
50+
tag_name: ${{ github.ref_name }}-${{ github.sha }}
51+
name: "${{ github.ref_name }} @ ${{ github.sha }}"
52+
files: versioned-dist/*
53+
prerelease: true
54+
55+
- name: Update Rolling Release (Latest)
56+
uses: softprops/action-gh-release@v2
57+
with:
58+
tag_name: latest-${{ github.ref_name }}
59+
name: "Latest ${{ github.ref_name }} Bootstrap"
60+
files: rolling-dist/**
61+
prerelease: true

.github/workflows/release.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)