Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite
buildkite
jobs for GitHub Action (#1746)
* Delete flake.lock in docs to better catch issues in tests * Fix #1757: test nix flake init --template "template#haskell-nix" * Rewrite `buildkite` jobs for GitHub Action
- Loading branch information
1 parent
b90fbaa
commit 8773809
Showing
7 changed files
with
505 additions
and
520 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: "Update pins, hackage.nix and stackage.nix" | ||
|
||
on: | ||
schedule: | ||
# * is a special character in YAML so you have to quote this string | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
update-hackage-and-stackage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: cachix/install-nix-action@v15 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
- name: "Update hackage.nix and stackage.nix" | ||
run: | | ||
nix-build build.nix -A maintainer-scripts.update-hackage -o update-hackage.sh | ||
echo "+++ Updating hackage.nix" | ||
./update-hackage.sh | ||
nix-build build.nix -A maintainer-scripts.update-stackage -o update-stackage.sh | ||
echo "+++ Updating stackage.nix" | ||
./update-stackage.sh | ||
update-pins: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: cachix/install-nix-action@v15 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
- name: "Update pins" | ||
run: | | ||
'buildkite-agent artifact download "flake.lock" .' | ||
nix-build build.nix -A maintainer-scripts.update-pins -o update-pins.sh | ||
./update-pins.sh |
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
Oops, something went wrong.