release-linux #10
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
| name: release-linux | |
| permissions: | |
| contents: write | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| type: string | |
| default: opencca/next | |
| release: | |
| type: boolean | |
| default: false | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ inputs.branch }} | |
| cancel-in-progress: true | |
| env: | |
| CI_REPO: https://github.com/opencca/ci-scripts | |
| CI_RUN_SCRIPT: run-ci.sh | |
| CI_BUILD_SCRIPT: build-linux.sh | |
| jobs: | |
| build-and-push: | |
| runs-on: self-hosted | |
| steps: | |
| - name: Checkout linux | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: opencca/linux | |
| ref: ${{ inputs.branch }} | |
| submodules: recursive | |
| clean: true | |
| path: linux | |
| - name: Run build script | |
| run: | | |
| rm -rf .ci || true | |
| git clone --depth 1 "$CI_REPO" .ci | |
| cd .ci | |
| ./"$CI_RUN_SCRIPT" "$GITHUB_WORKSPACE" ./"$CI_BUILD_SCRIPT" | |
| - name: Mark commit hashes | |
| uses: opencca/ci-scripts/.github/actions/commit-hash@opencca/main | |
| with: | |
| repos: | | |
| ./linux linux | |
| output: snapshot/commits.txt | |
| - name: Upload snapshot release | |
| if: ${{inputs.release}} | |
| uses: opencca/ci-scripts/.github/actions/release@opencca/main | |
| with: | |
| project: linux | |
| branch: ${{ inputs.branch }} | |
| artifact: | | |
| snapshot/commits.txt | |
| snapshot/debian/*.deb | |
| snapshot/Image | |
| snapshot/rk3588-kernel-config | |
| token: ${{ secrets.RELEASES_REPO_TOKEN }} |