-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CI build failures and update README
Signed-off-by: Andrei Jiroh Halili <[email protected]>
- Loading branch information
1 parent
ebd3295
commit 4e6f8db
Showing
2 changed files
with
47 additions
and
11 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,15 +1,17 @@ | ||
name: Nix Flake Builds | ||
|
||
on: | ||
schedule: | ||
- cron: "30 */6 * * *" | ||
- cron: "30 6 * * 5" | ||
push: | ||
branches: [main] | ||
|
||
permissions: | ||
contents: write | ||
actions: write | ||
|
||
jobs: | ||
update-lockfile: | ||
permissions: | ||
contents: write | ||
actions: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -21,11 +23,11 @@ jobs: | |
|
||
- name: Update flake | ||
run: | | ||
echo ::addgroup::Updating lockfile | ||
echo ::group::Updating lockfile | ||
nix flake update | ||
echo ::endgroup:: | ||
echo ::addgroup::Metadata | ||
echo ::group::Metadata | ||
nix flake metadata | ||
echo ::endgroup:: | ||
|
@@ -34,9 +36,12 @@ jobs: | |
git config --global user.name "RecapTimeBot" | ||
git config --global user.email "[email protected]" | ||
git add flake.lock | ||
git commit -m "Update flake.lock" || echo "No changes to commit" | ||
git commit -m "Update flake.lock [skip-ci]" || echo "No changes to commit" | ||
git push | ||
build-iso: | ||
concurrency: | ||
cancel-in-progress: false | ||
group: recoverykit-iso-builds | ||
needs: [update-lockfile] | ||
name: Build recovery ISO | ||
runs-on: ubuntu-latest | ||
|
@@ -54,9 +59,9 @@ jobs: | |
|
||
- run: | | ||
mkdir dist | ||
echo ::addgroup::Building amd64 minimal ISO file | ||
echo ::group::Building amd64 minimal ISO file | ||
nix build .#nixosConfigurations.recoverykit-amd64.config.system.build.isoImage --verbose --show-trace | ||
cp result/iso/*.iso ./out/ -rv | ||
cp result/iso/*.iso ./dist/ -rv | ||
echo ::endgroup | ||
- name: Upload as artifact | ||
|
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