-
Notifications
You must be signed in to change notification settings - Fork 321
54 lines (45 loc) · 1.1 KB
/
main.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
48
49
50
51
52
53
54
name: linux/mac
on:
push:
branches: [ '*' ]
pull_request:
branches: [ master ]
jobs:
build:
env:
CC: ${{ matrix.compiler }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
compiler:
- gcc
- clang
os:
- ubuntu-latest
- macOS-latest
steps:
- uses: actions/checkout@v4
- run: env | sort
- name: Install software
if: ${{ matrix.os == 'macOS-latest' }}
run: |
brew install automake bash coreutils make
echo "/usr/local/opt/coreutils/libexec/gnubin" >> $GITHUB_PATH
echo "/usr/local/opt/make/libexec/gnubin" >> $GITHUB_PATH
- name: Fetch branches
run: |
git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
git fetch --unshallow
- run: ./bootstrap
- run: ./configure
- run: make
- run: make test-all
- run: |
git clean -d -x -f
rm -fr tests/run-test-suite
git worktree prune
- name: Compiler version
run: ${{ matrix.compiler }} --version
- run: cmake .
- run: make
- run: make test