Skip to content

Update actions

Update actions #8

---
name: bookworm-aarch64 sysroot
on:
pull_request:
paths:
- "sysroot/**"
- .github/workflows/bookworm-aarch64-sysroot.yaml
push:
tags:
- "bookworm-sysroot-*"
jobs:
toolchains:
runs-on: ubuntu-22.04
name: bookworm-aarch64 sysroot
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Create sysroot
run: ./sysroot/sysroot-creator.sh build arm64
- name: Upload sysroot
uses: actions/upload-artifact@v4
with:
name: debian_bookworm_aarch64_sysroot.tar.xz
path: sysroot/out/sysroot-build/bookworm/debian_bookworm_arm64_sysroot.tar.xz
- uses: bazel-contrib/[email protected]
- name: Mount bazel cache
uses: actions/cache@v4
with:
path: "~/.cache/bazel"
key: bazel
- name: Copy sysroot
run: cp sysroot/out/sysroot-build/bookworm/debian_bookworm_arm64_sysroot.tar.xz debian_bookworm_aarch64_sysroot.tar.xz
- name: Test sysroot
run: bazel build --config=aarch64_sysroot //sysroot/...
- name: Release sysroot
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "sysroot/out/sysroot-build/bookworm/debian_bookworm_arm64_sysroot.tar.xz"
tag: ${{ github.ref }}
asset_name: debian_bookworm_aarch64_sysroot.tar.xz
overwrite: true