Skip to content

Commit 1fe0bd7

Browse files
committed
ci: move linux and macos to Github Actions
1 parent 0674311 commit 1fe0bd7

File tree

2 files changed

+52
-35
lines changed

2 files changed

+52
-35
lines changed

.cirrus.yml

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# TODO move to Github Actions after https://github.com/actions/runner/issues/385
12
freebsd_task:
23
freebsd_instance:
34
image_family: freebsd-13-2
@@ -13,38 +14,3 @@ freebsd_task:
1314
test_script: gmake -j4 test
1415
env:
1516
LC_ALL: en_US.UTF-8
16-
17-
linux_task:
18-
locales_script:
19-
- apt-get update && apt-get -y install locales
20-
- echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
21-
- locale-gen en_US.UTF-8
22-
matrix:
23-
- name: linux_clang
24-
container:
25-
image: silkeh/clang:13
26-
env:
27-
CXX: clang++
28-
- name: linux_gcc
29-
container:
30-
image: gcc:10
31-
test_script: make -j4 test
32-
env:
33-
LC_ALL: en_US.UTF-8
34-
35-
macos_task:
36-
macos_instance:
37-
image: ghcr.io/cirruslabs/macos-ventura-base:latest
38-
matrix:
39-
- name: macos_clang
40-
clang_script: brew install llvm@13
41-
env:
42-
CXX: /opt/homebrew/opt/llvm@13/bin/clang++
43-
- name: macos_gcc
44-
gcc_script:
45-
- /usr/sbin/softwareupdate --install-rosetta --agree-to-license
46-
- arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
47-
- arch -x86_64 /usr/local/bin/brew install gcc@10
48-
env:
49-
CXX: g++-10
50-
test_script: make -j4 test

.github/workflows/makefile.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Makefile CI
2+
on:
3+
push:
4+
branches: [ "master" ]
5+
pull_request:
6+
branches: [ "master" ]
7+
jobs:
8+
build:
9+
strategy:
10+
matrix:
11+
os: [ubuntu, macos]
12+
toolchain: [gcc, llvm]
13+
include:
14+
- os: ubuntu
15+
toolchain: gcc
16+
install_cmd: |
17+
sudo apt update
18+
sudo apt install g++
19+
CXX: g++
20+
- os: ubuntu
21+
toolchain: llvm
22+
install_cmd: |
23+
sudo apt update
24+
sudo apt install clang
25+
CXX: clang++
26+
- os: macos
27+
toolchain: gcc
28+
install_cmd: |
29+
brew update
30+
brew install gcc
31+
CXX: g++
32+
- os: macos
33+
toolchain: llvm
34+
install_cmd: |
35+
brew update
36+
brew install llvm
37+
CXX: clang++
38+
39+
runs-on: ${{ matrix.os }}-latest
40+
steps:
41+
- uses: actions/checkout@v3
42+
43+
# TODO remove after https://github.com/actions/runner-images/issues/8659 is resolved
44+
- uses: mjp41/workaround8649@c8550b715ccdc17f89c8d5c28d7a48eeff9c94a8
45+
with:
46+
os: ${{ matrix.os }}-latest
47+
48+
- name: Install dependencies
49+
run: ${{ matrix.install_cmd }}
50+
- name: Build and test
51+
run: make CXX=${{ matrix.CXX }} -j4 test

0 commit comments

Comments
 (0)