-
-
Notifications
You must be signed in to change notification settings - Fork 104
82 lines (70 loc) · 2.3 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
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
name: Ubuntu build
on: [push,pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
ubuntu:
name: Ubuntu
runs-on: ubuntu-latest
strategy:
fail-fast: false
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" }
- { deploy: true, distro: noble, CC: gcc, CXX: g++, LDFLAGS: "-fuse-ld=lld" }
- { deploy: false, distro: noble, 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@v4
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@v4
if: matrix.deploy
with:
name: ${{ matrix.distro }}-amd64
path: |
*.deb
- name: Continuous
uses: softprops/action-gh-release@v2
if: github.event_name != 'pull_request'
with:
name: "Continuous"
tag_name: "continuous"
body: ""
append_body: true
generate_release_notes: false
files: |
*.deb
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request'
with:
body: ""
append_body: true
generate_release_notes: false
files: |
*.deb