-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 1.06 KB
/
c-cpp.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
name: C/C++ CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: configure
run: sh ./.github/workflows/configure.sh
- name: Build binaries for target linux-x86_64
run: make release
- name: Archive binaries for target linux-x86_64
run: sh ./.github/workflows/make-archives.sh linux-x86_64
- name: Build binaries for target macos-arm64
run: make clean && make release CC="zig cc -target aarch64-macos" TARMAN_OS=darwin RELEASE_LDFLAGS=""
- name: Archive binaries for target macos-arm64
run: sh ./.github/workflows/make-archives.sh macos-arm64
- name: Build binaries for target linux-arm64
run: make clean && make release CC="zig cc -target aarch64-linux" TARMAN_OS=darwin RELEASE_LDFLAGS=""
- name: Archive binaries for target linux-arm64
run: sh ./.github/workflows/make-archives.sh linux-arm64
- name: Upload all
run: sh ./.github/workflows/upload.sh