-
-
Notifications
You must be signed in to change notification settings - Fork 104
54 lines (44 loc) · 1.35 KB
/
ubuntu-builds.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
52
53
54
name: Ubuntu build
on: push
jobs:
jammy:
name: Ubuntu
runs-on: ubuntu-latest
strategy:
matrix:
include:
- { deploy: true , distro: jammy, CC: gcc-12, CXX: g++-12, LDFLAGS: "" }
- { deploy: false, distro: jammy, CC: clang-14, CXX: clang++-14, LDFLAGS: "-fuse-ld=lld" }
- { deploy: true, distro: lunar, CC: gcc, CXX: g++, LDFLAGS: "-fuse-ld=lld" }
- { deploy: false, distro: lunar, CC: clang, CXX: clang++, LDFLAGS: "-fuse-ld=lld" }
container:
image: ubuntu:${{ matrix.distro }}
steps:
- name: Install git
run: |
apt-get update -qq
apt-get install -qq --force-yes git
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Dependencies
run: |
./ci/${{ matrix.distro }}.deps.sh
- name: Build
env:
CC: ${{ matrix.CC }}
CXX: ${{ matrix.CXX }}
LDFLAGS: ${{ matrix.LDFLAGS }}
run: |
./ci/${{ matrix.distro }}.build.sh
- name: Deploy
run: |
./ci/${{ matrix.distro }}.deploy.sh
- name: Upload build
uses: actions/upload-artifact@v2
if: matrix.deploy
with:
name: ${{ matrix.distro }}-amd64
path: |
*.deb