mirror of
https://github.com/perstarkse/minne.git
synced 2026-06-26 03:46:24 +02:00
release: 1.0.5
This commit is contained in:
@@ -25,7 +25,7 @@ jobs:
|
||||
with:
|
||||
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock', 'Cargo.lock') }}
|
||||
restore-prefixes-first-match: nix-${{ runner.os }}-
|
||||
gc-max-store-size-linux: 5G
|
||||
gc-max-store-size-linux: 10G
|
||||
|
||||
- name: Check formatting, clippy lint, unit tests & ort version
|
||||
run: nix flake check --show-trace
|
||||
|
||||
@@ -28,7 +28,7 @@ jobs:
|
||||
with:
|
||||
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock', 'Cargo.lock') }}
|
||||
restore-prefixes-first-match: nix-${{ runner.os }}-
|
||||
gc-max-store-size-linux: 5G
|
||||
gc-max-store-size-linux: 10G
|
||||
|
||||
- name: Read ORT version from flake
|
||||
id: ort_version
|
||||
@@ -37,6 +37,10 @@ jobs:
|
||||
- name: Run nix flake check
|
||||
run: nix flake check --system x86_64-linux
|
||||
|
||||
- name: Warm Linux release outputs for cache
|
||||
if: ${{ !github.event.pull_request }}
|
||||
run: nix build .#minne-release .#minne-release-windows --no-link -L
|
||||
|
||||
build-nix-artifacts:
|
||||
name: build (${{ matrix.triple }})
|
||||
needs: [ci]
|
||||
@@ -49,10 +53,10 @@ jobs:
|
||||
triple: x86_64-unknown-linux-gnu
|
||||
nix_package: minne-release
|
||||
cache_save: false
|
||||
- runner: macos-latest
|
||||
- runner: macos-14
|
||||
triple: aarch64-apple-darwin
|
||||
nix_package: minne-release
|
||||
cache_save: true
|
||||
cache_save: false
|
||||
- runner: ubuntu-24.04
|
||||
triple: x86_64-pc-windows-msvc
|
||||
nix_package: minne-release-windows
|
||||
@@ -70,8 +74,7 @@ jobs:
|
||||
with:
|
||||
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock', 'Cargo.lock') }}
|
||||
restore-prefixes-first-match: nix-${{ runner.os }}-
|
||||
gc-max-store-size-linux: 5G
|
||||
gc-max-store-size-darwin: 5G
|
||||
gc-max-store-size-linux: 10G
|
||||
save: ${{ matrix.cache_save }}
|
||||
|
||||
- name: Build release archive (Nix)
|
||||
@@ -88,7 +91,14 @@ jobs:
|
||||
ARTIFACT="main-${TRIPLE}.tar.xz"
|
||||
fi
|
||||
RELEASE="$(nix path-info ./minne-release)"
|
||||
cp "$RELEASE/${ARTIFACT}" "$ARTIFACT"
|
||||
echo "Release output at $RELEASE:"
|
||||
ls -la "$RELEASE"
|
||||
mapfile -t BUILT < <(find "$RELEASE" -maxdepth 1 \( -name 'main-*.tar.xz' -o -name 'main-*.zip' \) -print)
|
||||
if [ "${#BUILT[@]}" -ne 1 ]; then
|
||||
echo "Expected exactly one release archive in $RELEASE" >&2
|
||||
exit 1
|
||||
fi
|
||||
cp "${BUILT[0]}" "$ARTIFACT"
|
||||
if command -v sha256sum >/dev/null; then
|
||||
sha256sum "$ARTIFACT" > "${ARTIFACT}.sha256"
|
||||
else
|
||||
@@ -124,7 +134,7 @@ jobs:
|
||||
with:
|
||||
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock', 'Cargo.lock') }}
|
||||
restore-prefixes-first-match: nix-${{ runner.os }}-
|
||||
gc-max-store-size-linux: 5G
|
||||
gc-max-store-size-linux: 10G
|
||||
save: false
|
||||
|
||||
- name: Build Docker image with Nix
|
||||
|
||||
Reference in New Issue
Block a user