Skip to content

ci: update

ci: update #9

Workflow file for this run

name: CI
'on':
merge_group:
branches:
- master
- main
pull_request:
branches:
- master
- main
push:
branches:
- master
- main
tags:
- v*
workflow_dispatch: {}
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- name: Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Build ${{ matrix.host }} binary
run: 'nix build -L .#${{matrix.host}}.release.SyncDisBoi'
- uses: actions/upload-artifact@v4
with:
name: "${{ matrix.host }}-sync_dis_boi"
path: "result/bin/*"
strategy:
matrix:
host:
- x86_64-linux
- aarch64-linux
release:
name: Release
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
pattern: "*-sync_dis_boi"
merge-multiple: true
- uses: ncipollo/release-action@v1
with:
artifacts: "*-sync_dis_boi"
flake:
name: Flake self-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v5
with:
fail-mode: true