-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (43 loc) · 1.15 KB
/
build.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
name: CI
on:
push:
branches: [ "6" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/eebssk1/bbk/debian-bookworm:latest
volumes:
- /root:/user
strategy:
matrix:
compiler: [llvm, gcc]
target: [desktop, server_large, server_small, server_small_2]
env:
GZIP: -8
steps:
- uses: actions/checkout@v2
- name: setup swap
run: exec ./swap.sh
- name: enable ccache
uses: hendrikmuhs/[email protected]
with:
verbose: 1
max-size: "960M"
key: ${{ matrix.target }}-${{ matrix.compiler }}
- name: build
run: ./b.sh ${{ matrix.target }} ${{ matrix.compiler }}
- name: upload
uses: actions/upload-artifact@v4
with:
name: debs_${{ matrix.target }}-${{ matrix.compiler }}
path: "*.deb"
- name: release
uses: ncipollo/[email protected]
with:
allowUpdates: true
artifacts: "*.deb"
commit: 6
makeLatest: ${{ matrix.compiler == 'llvm' }}
tag: ${{ env.VER }}-${{ matrix.compiler }}