-
Notifications
You must be signed in to change notification settings - Fork 25
40 lines (31 loc) · 954 Bytes
/
linux-gcc.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
name: Linux GCC
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- name: Setup GCC
uses: egor-tensin/setup-gcc@v1
with:
version: 12
platform: x64
- name: Setup
run: |
sudo apt update
sudo apt-get install build-essential automake autoconf autoconf-archive texinfo libtool-bin yasm ninja-build ccache
- name: Restore artifacts or setup vcpkg
uses: lukka/run-vcpkg@v11
with:
vcpkgGitCommitId: 19818154132296571625fec5c5d55d78d11510b6
- name: Configure
run: cmake --preset=build
- name: Build
run: cmake --build build -j 2
- name: Test
working-directory: build
continue-on-error: true
run: ctest --rerun-failed --output-on-failure -j 2