-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build all years in the github pipeline (#148)
Alter `flake.nix` and GitHub Actions to automatically build all years from 2025 to 2030 in the cloud when commits are made.
- Loading branch information
Showing
2 changed files
with
75 additions
and
35 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
name: "Build 2023" | ||
name: "Build all PDFs" | ||
on: | ||
pull_request: | ||
push: | ||
jobs: | ||
build: | ||
build-pdfs: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
build-output: ["pdf-all", "pdf-next"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: cachix/install-nix-action@v19 | ||
- name: Build PDFs | ||
run: nix build | ||
- name: Copy PDFs | ||
run: cp result/*.pdf . | ||
- name: Output PDFs | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: result | ||
path: ./*.pdf | ||
if-no-files-found: error | ||
|
||
- uses: actions/checkout@v3 | ||
- uses: cachix/install-nix-action@v19 | ||
- name: Build PDFs | ||
run: nix build .#${{ matrix.build-output }} | ||
- name: Copy PDFs | ||
run: cp result/*.pdf . | ||
- name: Output PDFs | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: result | ||
path: ./*.pdf | ||
if-no-files-found: error |
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