Skip to content

ci: use self-hosted runners #1082

ci: use self-hosted runners

ci: use self-hosted runners #1082

Workflow file for this run

name: Build
on:
pull_request:
push:
branches:
- master
jobs:
cleanup-runs:
runs-on: ubuntu-latest
steps:
- uses: rokroskar/workflow-run-cleanup-action@master
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'"
build:
runs-on: [self-hosted, ubuntu]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- uses: technote-space/get-diff-action@v5
id: git_diff
with:
SUFFIX_FILTER: |
.go
.mod
.sum
- name: Pull LFS files
run: git lfs pull
- run: |
make build
if: "env.GIT_DIFF != ''"
build-nix:
runs-on: [self-hosted, nixos]
steps:
- uses: actions/checkout@v4
- name: Build nix package
run: |
nix build .#haqq --print-build-logs
check-nix:
runs-on: [self-hosted, nixos]
steps:
- uses: actions/checkout@v4
- name: Check if Nix package and Makefile versions match
run: |
nix develop --impure .#ci --command ci-check-version
- name: Check if gomod2nix file is up to date
run: |
nix develop --impure .#ci --command ci-check-gomod2nix