Skip to content

Packaging

Packaging #59

Workflow file for this run

name: Build & Test
on:
- push
- pull_request
jobs:
build:
runs-on: [ubuntu-latest, ubuntu-24.04-arm]
permissions:
contents: write # write required for action-gh-release
id-token: write
steps:
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Checkout
uses: actions/checkout@v4
- name: Run `nix fmt`
run: nix fmt -- --check *
- name: Build all packages supported by the current architecture
run: nix flake check -L
# Leads to:
# `cannot write uid_map: Operation not permitted`
# - name: Test appimage
# run: ./result --help
- name: Rename AppImage
if: startsWith(github.ref, 'refs/tags/')
run: cp ./result isd.${{ runner.arch }}.AppImage
- name: Release AppImage
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: isd.${{ runner.arch}}.AppImage