-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (39 loc) · 1.25 KB
/
build-toolchain.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
name: Build Toolchain Workflow (Bookworm)
on:
push:
branches:
- main
paths:
- 'source/**'
pull_request:
branches:
- main
paths:
- 'source/**'
jobs:
build:
runs-on: ubuntu-latest
container:
image: debian:bookworm
strategy:
matrix:
architecture: [arm64, amd64]
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install Dependencies
run: |
apt-get update
apt-get install -y --no-install-recommends binutils apt-utils dpkg-dev debian-archive-keyring equivs tar jq git devscripts build-essential lintian
- name: Build libobjc2
run: |
./cmd/main.sh --release bookworm --architecture ${{ matrix.architecture }} --no-sandbox -o libobjc2
env:
DEBIAN_FRONTEND: noninteractive
- name: Archive and Upload Resulting Packages
run: |
cd build/debian
tar -cvzf packages-${{ matrix.architecture }}.tar.gz $(find . -type f \( -name "*.deb" -o -name "*.changes" -o -name "*.dsc" -o -name "*.ddeb" \))
uses: actions/upload-artifact@v3
with:
name: packages-${{ matrix.architecture }}
path: build/debian/packages-${{ matrix.architecture }}.tar.gz