-
-
Notifications
You must be signed in to change notification settings - Fork 4
143 lines (132 loc) · 5.3 KB
/
base.yml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
name: Base
permissions:
contents: read
on:
# pull_request:
push:
branches:
- dev
tags:
- 'base-[0-9]+-[0-9]+-[0-9]+'
schedule:
- cron: '0 2 1 * *'
workflow_dispatch:
defaults:
run:
shell: bash --noprofile --norc -CeEuxo pipefail {0}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
docker:
strategy:
fail-fast: false
matrix:
include:
# Linux (musl)
- target: aarch64-unknown-linux-musl
- target: aarch64-unknown-linux-musl
os: ubuntu-24.04-arm
- target: arm-unknown-linux-musleabi
- target: arm-unknown-linux-musleabi
os: ubuntu-24.04-arm
- target: arm-unknown-linux-musleabihf
- target: arm-unknown-linux-musleabihf
os: ubuntu-24.04-arm
- target: armv5te-unknown-linux-musleabi
- target: armv5te-unknown-linux-musleabi
os: ubuntu-24.04-arm
- target: armv7-unknown-linux-musleabi
- target: armv7-unknown-linux-musleabi
os: ubuntu-24.04-arm
- target: armv7-unknown-linux-musleabihf
- target: armv7-unknown-linux-musleabihf
os: ubuntu-24.04-arm
- target: hexagon-unknown-linux-musl # tier3
- target: i586-unknown-linux-musl
- target: i586-unknown-linux-musl
os: ubuntu-24.04-arm
- target: i686-unknown-linux-musl
- target: i686-unknown-linux-musl
os: ubuntu-24.04-arm
# - target: loongarch64-unknown-linux-musl # musl-cross-make doesn't support this target
- target: mips-unknown-linux-musl # tier3
- target: mips-unknown-linux-musl # tier3
os: ubuntu-24.04-arm
- target: mips64-unknown-linux-muslabi64 # tier3
- target: mips64-unknown-linux-muslabi64 # tier3
os: ubuntu-24.04-arm
- target: mips64el-unknown-linux-muslabi64 # tier3
- target: mips64el-unknown-linux-muslabi64 # tier3
os: ubuntu-24.04-arm
- target: mipsel-unknown-linux-musl # tier3
- target: mipsel-unknown-linux-musl # tier3
os: ubuntu-24.04-arm
- target: powerpc-unknown-linux-musl # tier3
- target: powerpc-unknown-linux-musl # tier3
os: ubuntu-24.04-arm
- target: powerpc-unknown-linux-muslspe # tier3
- target: powerpc-unknown-linux-muslspe # tier3
os: ubuntu-24.04-arm
- target: powerpc64-unknown-linux-musl # tier3
- target: powerpc64-unknown-linux-musl # tier3
os: ubuntu-24.04-arm
- target: powerpc64le-unknown-linux-musl # tier3
- target: powerpc64le-unknown-linux-musl # tier3
os: ubuntu-24.04-arm
- target: riscv32gc-unknown-linux-musl # tier3
- target: riscv32gc-unknown-linux-musl # tier3
os: ubuntu-24.04-arm
- target: riscv64gc-unknown-linux-musl
- target: riscv64gc-unknown-linux-musl
os: ubuntu-24.04-arm
- target: s390x-unknown-linux-musl # tier3
- target: s390x-unknown-linux-musl # tier3
os: ubuntu-24.04-arm
- target: thumbv7neon-unknown-linux-musleabihf # tier3
- target: thumbv7neon-unknown-linux-musleabihf # tier3
os: ubuntu-24.04-arm
- target: x86_64-unknown-linux-musl
- target: x86_64-unknown-linux-musl
os: ubuntu-24.04-arm
# NetBSD
- target: aarch64-unknown-netbsd # tier3
- target: aarch64_be-unknown-netbsd # tier3
- target: armv6-unknown-netbsd-eabihf # tier3
- target: armv7-unknown-netbsd-eabihf # tier3
- target: i586-unknown-netbsd # tier3
- target: i686-unknown-netbsd # tier3
- target: mipsel-unknown-netbsd # tier3
- target: powerpc-unknown-netbsd # tier3
- target: sparc64-unknown-netbsd # tier3
- target: x86_64-unknown-netbsd
# Solaris
- target: sparcv9-sun-solaris
- target: x86_64-pc-solaris
# illumos
- target: x86_64-unknown-illumos
# Windows (MinGW)
- target: i686-pc-windows-gnu
- target: i686-pc-windows-gnu
os: ubuntu-24.04-arm
- target: x86_64-pc-windows-gnu
- target: x86_64-pc-windows-gnu
os: ubuntu-24.04-arm
# Misc
- target: various
- target: various
os: ubuntu-24.04-arm
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
timeout-minutes: 120
permissions:
contents: read
packages: write # for push to ghcr
steps:
- uses: taiki-e/checkout-action@v1
- uses: taiki-e/github-actions/free-device-space@main
- uses: taiki-e/github-actions/setup-docker@main
- run: |
docker login ghcr.io -u "${{ github.actor }}" --password-stdin <<<"${{ secrets.GITHUB_TOKEN }}"
printf 'PUSH_TO_GHCR=1\n' >>"${GITHUB_ENV}"
if: github.repository_owner == 'taiki-e' && (github.event_name == 'push' && (github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/')) || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule')
- run: docker/base/build-docker.sh "${{ matrix.target }}"