forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (54 loc) · 1.54 KB
/
build-libc-container.yml
File metadata and controls
58 lines (54 loc) · 1.54 KB
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
52
53
54
55
56
57
58
name: Build libc Container
permissions:
contents: read
on:
push:
branches:
- main
paths:
- .github/workflows/build-libc-container.yml
- '.github/workflows/containers/libc/**'
pull_request:
paths:
- .github/workflows/build-libc-container.yml
- '.github/workflows/containers/libc/**'
jobs:
build-libc-container:
name: Build libc container
if: github.repository_owner == 'llvm'
runs-on: ${{ matrix.runs-on }}
strategy:
matrix:
runs-on:
- ubuntu-24.04
- ubuntu-24.04-arm
steps:
- name: Checkout LLVM
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
sparse-checkout: |
.github/workflows/containers/libc/
.github/actions/build-container
- name: Build Container
uses: ./.github/actions/build-container
with:
container-name: libc-ubuntu-24.04
dockerfile: .github/workflows/containers/libc/Dockerfile
target: ''
test-command: ${{ matrix.test-command }}
push-libc-container:
if: github.event_name == 'push'
needs:
- build-libc-container
permissions:
packages: write
runs-on: ubuntu-24.04
steps:
- name: Checkout LLVM
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
sparse-checkout: |
.github/actions/push-container
- uses: ./.github/actions/push-container
with:
token: ${{ secrets.GITHUB_TOKEN }}