-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (49 loc) · 1.32 KB
/
Copy pathci.yml
File metadata and controls
56 lines (49 loc) · 1.32 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
51
52
53
54
55
name: ci
on:
push:
branches: [ master ]
pull_request:
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-22.04
arch: x64
cc: gcc
cxx: g++
pkgs: gcc
- os: ubuntu-22.04
arch: x32
cc: gcc
cxx: g++
pkgs: gcc-multilib g++-multilib
flags: "-m32"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Deps (Linux)
if: ${{ matrix.os == 'ubuntu-22.04' }}
run: |
sudo dpkg --add-architecture i386
sudo apt-get update -y
sudo apt-get install ${{ matrix.pkgs }} meson ninja-build -y
- name: Generate Build Files & Build (Linux)
if: ${{ matrix.os == 'ubuntu-22.04' }}
run: |
export CC=${{ matrix.cc }}
export CXX=${{ matrix.cxx }}
export CXXFLAGS=${{ matrix.flags }}
export CFLAGS=${{ matrix.flags }}
export LDFLAGS=${{ matrix.flags }}
make all test BUILD_TYPE=release
- name: Upload Artifacts (Linux)
if: ${{ matrix.os == 'ubuntu-22.04' }}
uses: actions/upload-artifact@v3
with:
name: linux-${{ matrix.arch }}
if-no-files-found: error
path: ./build/