-
Notifications
You must be signed in to change notification settings - Fork 16
47 lines (47 loc) · 1.35 KB
/
build-targets.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
47
name: build targets
on: [pull_request]
jobs:
build:
if: github.repository == 'QW-Group/qwfwd'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: [linux-amd64, linux-i686, linux-armhf, linux-aarch64, windows-x64, windows-x86]
include:
- target: linux-amd64
os: linux
arch: amd64
ext: ""
- target: linux-i686
os: linux
arch: i686
ext: ""
- target: linux-armhf
os: linux
arch: armhf
ext: ""
- target: linux-aarch64
os: linux
arch: aarch64
ext: ""
- target: windows-x64
os: windows
arch: x64
ext: ".exe"
- target: windows-x86
os: windows
arch: x86
ext: ".exe"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare Build Environemnt
run: |
sudo apt-get update
sudo apt-get -y install build-essential cmake gcc-i686-linux-gnu
sudo apt-get -y install gcc-arm-linux-gnueabihf libc6-dev-armhf-cross gcc-aarch64-linux-gnu libc6-dev-arm64-cross
sudo apt-get -y install gcc-mingw-w64-x86-64 gcc-mingw-w64-i686
- name: Build
run: |
./build_cmake.sh ${{ matrix.target }}