-
Notifications
You must be signed in to change notification settings - Fork 14
Build, test, and release workflow fixes #1180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
dcc39da
test/9m: bump to latest version
troglobit 5cd9197
.github: re-enable massive parallel build
troglobit 97fd671
.github: alternative fix to issue #1154
troglobit ff5b5f9
.github: simplify a bit now that we have a check-trigger
troglobit 2d7cb12
.github: new weekly workflow to verify release workflow
troglobit 1ba9123
.github: clean up stale containers and ports
troglobit fcd2e15
.github: include link to GNS3 appliance in Release changelog snippet.
troglobit 0c52bac
doc: sync example output from 'show interfaces'
troglobit 1125f3b
.github: update release checklist
troglobit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,92 @@ | ||
| name: Build Release | ||
|
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| version: | ||
| required: true | ||
| type: string | ||
| use_cache: | ||
| required: false | ||
| type: boolean | ||
| default: true | ||
|
|
||
| jobs: | ||
| build: | ||
| name: Build Infix ${{ inputs.version }} [${{ matrix.target }}] | ||
| runs-on: [ self-hosted, release ] | ||
| strategy: | ||
| matrix: | ||
| target: [aarch64, x86_64] | ||
| fail-fast: false | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| clean: true | ||
| submodules: recursive | ||
|
|
||
| - name: Set Release Variables | ||
| id: vars | ||
| run: | | ||
| ver=${{ inputs.version }} | ||
| echo "ver=${ver}" >> $GITHUB_OUTPUT | ||
| fver=${ver#v} | ||
| target=${{ matrix.target }}-${fver} | ||
| echo "dir=infix-$target" >> $GITHUB_OUTPUT | ||
| echo "tgz=infix-$target.tar.gz" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Restore Cache of dl/ | ||
| if: ${{ inputs.use_cache }} | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: dl/ | ||
| key: dl-${{ hashFiles('.git/modules/buildroot/HEAD', 'configs/*', 'package/*/*.hash') }} | ||
| restore-keys: | | ||
| dl- | ||
|
|
||
| - name: Restore Cache of .ccache/ | ||
| if: ${{ inputs.use_cache }} | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: .ccache/ | ||
| key: ccache-${{ matrix.target }}-${{ hashFiles('.git/modules/buildroot/HEAD', 'package/*/*.hash') }} | ||
| restore-keys: | | ||
| ccache-${{ matrix.target }}- | ||
| ccache- | ||
|
|
||
| - name: Configure & Build | ||
| env: | ||
| INFIX_RELEASE: ${{ steps.vars.outputs.ver }} | ||
| run: | | ||
| target=${{ matrix.target }}_defconfig | ||
| echo "Building $target ..." | ||
| make $target | ||
| make | ||
|
|
||
| - name: Generate SBOM from Build | ||
| run: | | ||
| make legal-info | ||
|
|
||
| - name: Build test specification | ||
| run: | | ||
| make test-spec | ||
|
|
||
| - name: Prepare Artifacts | ||
| run: | | ||
| cd output/ | ||
| mv images ${{ steps.vars.outputs.dir }} | ||
| ln -s ${{ steps.vars.outputs.dir }} images | ||
| tar cfz ${{ steps.vars.outputs.tgz }} ${{ steps.vars.outputs.dir }} | ||
|
|
||
| mv legal-info legal-info-${{ matrix.target }}-${{ steps.vars.outputs.ver }} | ||
| tar cfz legal-info-${{ matrix.target }}-${{ steps.vars.outputs.ver }}.tar.gz legal-info-${{ matrix.target }}-${{ steps.vars.outputs.ver }} | ||
|
|
||
| - uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: artifact-${{ matrix.target }} | ||
| path: output/*.tar.gz | ||
|
|
||
| - uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: artifact-disk-image-${{ matrix.target }} | ||
| path: output/images/*.qcow2 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,68 @@ | ||
| # Weekly release build to catch flaky tests and verify clean builds. | ||
| # Runs without caches (ccache) to ensure reproducibility. See issue #1003. | ||
| name: Weekly Build | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: '5 0 * * 6' # Saturday at 00:05 UTC, same as Coverity | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build: | ||
| if: github.repository == 'kernelkit/infix' | ||
| uses: ./.github/workflows/build-release.yml | ||
| with: | ||
| version: "latest" | ||
| use_cache: false | ||
|
|
||
| publish: | ||
| name: Publish Weekly Build | ||
| needs: build | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| steps: | ||
| - uses: actions/download-artifact@v4 | ||
| with: | ||
| pattern: "artifact-*" | ||
| merge-multiple: true | ||
|
|
||
| - name: Create checksums | ||
| run: | | ||
| for file in *.tar.gz; do | ||
| sha256sum $file > $file.sha256 | ||
| done | ||
| if ls *.qcow2 &>/dev/null; then | ||
| for file in *.qcow2; do | ||
| sha256sum "$file" > "$file.sha256" | ||
| done | ||
| fi | ||
|
|
||
| - uses: ncipollo/release-action@v1 | ||
| with: | ||
| tag: latest | ||
| name: "Latest Weekly Build" | ||
| prerelease: true | ||
| makeLatest: false | ||
| allowUpdates: true | ||
| removeArtifacts: true | ||
| body: | | ||
| Automated weekly build from `${{ github.sha }}`. | ||
|
|
||
| This build runs without caches to catch potential flaky tests and build issues. | ||
| Not intended for production use - use official releases instead. | ||
|
|
||
| **Commit:** ${{ github.sha }} | ||
| **Built:** ${{ github.run_id }} | ||
| artifacts: "*.tar.gz*,*.qcow2*" | ||
|
|
||
| - name: Summary | ||
| run: | | ||
| cat <<EOF >> $GITHUB_STEP_SUMMARY | ||
| # Weekly Build Published! :package: | ||
|
|
||
| Latest artifacts uploaded to: | ||
| <https://github.com/kernelkit/infix/releases/tag/latest> | ||
|
|
||
| Built from commit: \`${{ github.sha }}\` | ||
| EOF |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.