mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 06:03:15 -06:00
cache minimal then build full
This commit is contained in:
parent
0c172affc5
commit
c4002388aa
1 changed files with 49 additions and 3 deletions
52
.github/workflows/nightly.yml
vendored
52
.github/workflows/nightly.yml
vendored
|
@ -8,15 +8,21 @@ on:
|
|||
# concurrency:
|
||||
# group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.host }}
|
||||
# cancel-in-progress: true
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
build:
|
||||
build-minimal:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- uses: ./.github/actions/clean-disk
|
||||
- name: Setup Git Bot
|
||||
run: |
|
||||
git --version
|
||||
git config user.name 'github-actions[bot]'
|
||||
git config user.email 'github-actions[bot]@users.noreply.github.com'
|
||||
|
||||
- uses: DeterminateSystems/nix-installer-action@v12
|
||||
with:
|
||||
|
@ -32,7 +38,8 @@ jobs:
|
|||
|
||||
- name: Update nix flake
|
||||
run:
|
||||
nix flake update >> $GITHUB_STEP_SUMMARY
|
||||
git checkout -B flake-lock
|
||||
nix flake update --commit-lock-file 2>> $GITHUB_STEP_SUMMARY
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
|
@ -45,3 +52,42 @@ jobs:
|
|||
--debug \
|
||||
-- \
|
||||
--print-build-logs
|
||||
|
||||
- name: Commit Updates
|
||||
run: git push
|
||||
|
||||
build-full:
|
||||
needs: build-minimal
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Git Bot
|
||||
run: |
|
||||
git --version
|
||||
git config user.name 'github-actions[bot]'
|
||||
git config user.email 'github-actions[bot]@users.noreply.github.com'
|
||||
|
||||
- uses: DeterminateSystems/nix-installer-action@v12
|
||||
with:
|
||||
extra-conf: |
|
||||
accept-flake-config = true
|
||||
|
||||
- uses: DeterminateSystems/magic-nix-cache-action@v7
|
||||
|
||||
- uses: ./.github/actions/clean-disk
|
||||
with:
|
||||
purge-packages: 'true'
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
nix run . \
|
||||
-- \
|
||||
build \
|
||||
--host "othalan" \
|
||||
--flake . \
|
||||
--verbose \
|
||||
--debug \
|
||||
-- \
|
||||
--print-build-logs
|
||||
|
|
Loading…
Reference in a new issue