-
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.
- Loading branch information
Showing
2 changed files
with
50 additions
and
9 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
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 |
---|---|---|
|
@@ -19,8 +19,54 @@ jobs: | |
name: on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 1440 | ||
env: | ||
DEBPKG_GITHUB_ANONYMOUS: 1 | ||
DEBIAN_FRONTEND: noninteractive | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Clone repo | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 5 | ||
- run: ./.github/scripts/run-test.sh | ||
|
||
- name: Tool install | ||
run: sudo apt-get install -y debootstrap | ||
|
||
# make sure we have *some* GPG key for apt repo signing | ||
# doesn't need to be kept secure as nobody really trusts it anyways | ||
|
||
- name: Cache gpg key | ||
id: cache-gpg | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.gnupg | ||
key: gnupg | ||
|
||
- if: ${{ steps.cache-gpg.outputs.cache-hit != 'true' }} | ||
name: Generate gpg key (if necessary) | ||
run: ./.github/scripts/gen-gpg-key.sh | ||
|
||
# cache apt repo and state, so we don't need full rebuild every time | ||
# note: for different branches, need different name | ||
|
||
- name: Cache apt repo and state files | ||
id: cache-repo | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
${{ github.workspace }}/.aptrepo | ||
${{ github.workspace }}/.stat | ||
key: repobuild-${{ runner.os }}-${{ runner.arch }}-${{ matrix.os }}+${{ github.ref_name }}@${{ hashFiles('cf/**/*.yml') }} | ||
restore-keys: | | ||
repobuild-${{ runner.os }}-${{ runner.arch }}-${{ matrix.os }}+${{ github.ref_name }}@${{ hashFiles('cf/**/*.yml') }} | ||
repobuild-${{ runner.os }}-${{ runner.arch }}-${{ matrix.os }}+${{ github.ref_name }}@ | ||
# run the actual builders | ||
|
||
- name: Run builders | ||
run: | | ||
for scr in ./build.* ; do | ||
if [ -x $scr ]; then | ||
echo "---> Calling builder: $scr" | ||
$scr || exit $? | ||
fi | ||
done |