Skip to content

Commit

Permalink
ci: add build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
itsnebulalol committed Nov 20, 2024
1 parent 055bcd6 commit 8eb4347
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build nocturned

on:
workflow_dispatch:
pull_request:
push:
paths-ignore:
- '**/README.md'

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Nix
uses: cachix/install-nix-action@v30
with:
extra_nix_config: |
trusted-public-keys = nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nocturne:C3rx7XJOGGbybHbYZ+Y2ucq5yavdjRD7K3Me0oirsTY=
trusted-substituters = https://nix-community.cachix.org https://cache.nixos.org https://attic.svrd.me/nocturne
substituters = https://nix-community.cachix.org https://cache.nixos.org https://attic.svrd.me/nocturne
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: Build nocturned
run: nix develop --command "GOOS=linux GOARCH=arm64 go build"

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: nocturned
path: result/bin/nocturned
compression-level: 9
if-no-files-found: error

0 comments on commit 8eb4347

Please sign in to comment.