GCC 14.1 #3
Workflow file for this run
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
name: Build Toolchain | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- v** | |
pull_request: | |
jobs: | |
build: | |
name: Build Toolchain | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
target_arch: [aarch64, arm, i686, x86_64] | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@main | |
with: | |
path: ${{ github.workspace }} | |
- name: Build Toolchain | |
env: | |
TOOLCHAIN_ARCH: ${{ matrix.target_arch }} | |
run: | | |
bash ./build.sh | |
- name: Waiting for debugger | |
if: ${{ failure() }} | |
uses: mxschmitt/action-tmate@v3 | |
- name: Upload Build Archive | |
uses: actions/upload-artifact@v2 | |
with: | |
name: newer-toolchain-${{ matrix.target_arch }}-${{ github.sha }} | |
path: ${{ github.workspace }}/build/ | |
release: | |
name: Create Github Release | |
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }} | |
needs: build | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Fetch archives | |
uses: actions/download-artifact@v2 | |
with: | |
path: ./ | |
- name: Copy archives | |
run: | | |
cp newer-toolchain-*-${{ github.sha }}/*.tar.bz2 ./ | |
- name: Get checksums | |
id: checksums | |
run: | | |
checksums=$(printf 'SHA-256:\n```\n%s\n```\n' "$(sha256sum *.tar.bz2)") | |
checksums="${checksums//'%'/'%25'}" | |
checksums="${checksums//$'\n'/'%0A'}" | |
checksums="${checksums//$'\r'/'%0D'}" | |
echo "::set-output name=checksums::$checksums" | |
- name: Get tag | |
id: tag | |
uses: dawidd6/action-get-tag@v1 | |
- name: Publish GitHub release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: "*.tar.bz2" | |
file_glob: true | |
release_name: "Android NDK toolchain version r17c with gcc" | |
tag: ${{ steps.tag.outputs.tag }} | |
body: ${{ steps.checksums.outputs.checksums }} |