-
Notifications
You must be signed in to change notification settings - Fork 6
51 lines (43 loc) · 1.48 KB
/
bullseye-x86_64-sysroot.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
name: bullseye-x86_64 sysroot
on:
pull_request:
paths:
- "sysroot/**"
- .github/workflows/bullseye-x86_64-sysroot.yaml
push:
tags:
- "bullseye-sysroot-*"
jobs:
toolchains:
runs-on: ubuntu-22.04
name: bullseye-x86_64 sysroot
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Create sysroot
run: ./sysroot/sysroot-creator.sh build amd64
- name: Upload sysroot
uses: actions/upload-artifact@v3
with:
name: debian_bullseye_x86_64_sysroot.tar.xz
path: sysroot/out/sysroot-build/bullseye/debian_bullseye_amd64_sysroot.tar.xz
- uses: bazelbuild/setup-bazelisk@v2
- name: Mount bazel cache
uses: actions/cache@v1
with:
path: "~/.cache/bazel"
key: bazel
- name: Copy sysroot
run: cp sysroot/out/sysroot-build/bullseye/debian_bullseye_amd64_sysroot.tar.xz debian_bullseye_x86_64_sysroot.tar.xz
- name: Test sysroot
run: bazel build --config=x86_64_sysroot //sysroot/...
- name: Release sysroot
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "sysroot/out/sysroot-build/bullseye/debian_bullseye_amd64_sysroot.tar.xz"
tag: ${{ github.ref }}
asset_name: debian_bullseye_x86_64_sysroot.tar.xz
overwrite: true