-
Notifications
You must be signed in to change notification settings - Fork 52
50 lines (42 loc) · 1.19 KB
/
Copy pathbuild.yml
File metadata and controls
50 lines (42 loc) · 1.19 KB
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
name: build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev
- name: Build
run: make
- name: Run tests
run: make test
cross-compile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install cross-compilers
run: |
sudo apt-get update
sudo apt-get install -y \
gcc-aarch64-linux-gnu \
gcc-arm-linux-gnueabi \
gcc-arm-linux-gnueabihf \
gcc-i686-linux-gnu \
gcc-mips-linux-gnu \
gcc-mipsel-linux-gnu \
gcc-mips64-linux-gnuabi64 \
gcc-mips64el-linux-gnuabi64 \
gcc-powerpc-linux-gnu \
gcc-powerpc64-linux-gnu \
gcc-powerpc64le-linux-gnu \
gcc-riscv64-linux-gnu \
gcc-s390x-linux-gnu
# TODO: loongarch64 — no gcc-loongarch64-linux-gnu package in Ubuntu.
# TODO: armeb — no big-endian ARM package in Ubuntu.
- name: Cross-compile all targets
run: make cross