CI: add name, cache, and paths to ignore #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
paths-ignore: | |
- "README.md" | |
- ".gitignore" | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build Saturn | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v30 | |
- name: Nix Cache | |
uses: DeterminateSystems/magic-nix-cache-action@v8 | |
- name: Build | |
run: nix build | |
- name: Upload script | |
uses: actions/upload-artifact@v4.4.3 | |
with: | |
name: saturn | |
path: ./result/bin/saturn | |