Skip to content

Commit 612a2eb

Browse files
committed
CI Rework WIP
1 parent a76e23b commit 612a2eb

File tree

9 files changed

+655
-207
lines changed

9 files changed

+655
-207
lines changed

.github/workflows/build-cppfront.yaml

Lines changed: 0 additions & 71 deletions
This file was deleted.
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Build Test Pipeline
2+
3+
on:
4+
pull_request:
5+
branches-ignore:
6+
- docs
7+
push:
8+
branches-ignore:
9+
- docs
10+
workflow_dispatch:
11+
12+
jobs:
13+
build-test-pipeline:
14+
runs-on: ${{ matrix.runs-on }}
15+
name: ${{ matrix.target }}
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
include:
20+
- target: x64-linux-g++-c++20
21+
runs-on: ubuntu-latest
22+
compiler-path: /usr/bin/g++
23+
compiler-flags: -std=c++20 -Wall -Wextra -pedantic -Werror -O2 '-I{1}' -o '{2}' '{0}'
24+
- target: x64-windows-msvc-c++latest
25+
runs-on: windows-latest
26+
compiler-path: cl.exe
27+
compiler-flags: /std:c++latest /MD /EHsc /experimental:module /W4 /WX /O2 /I '{1}' '{0}' /link '/out:{2}'
28+
# - target: x64-macos-clang-c++20
29+
# runs-on: macos-latest-large
30+
# compiler-path: /usr/bin/clang++
31+
# compiler-flags: -std=c++20 -Wall -Wextra -pedantic -Werror -I{include_dir} -o {exe_out} {source_file}
32+
# - target: arm64-macos-clang-c++20
33+
# runs-on: macos-latest
34+
# compiler-path: /usr/bin/clang++
35+
# compiler-flags: -std=c++20 -Wall -Wextra -pedantic -Werror -I{include_dir} -o {exe_out} {source_file}
36+
steps:
37+
- name: Checkout repo
38+
uses: actions/checkout@v4
39+
40+
- name: Activate MSVC dev environment (Windows only)
41+
if: startsWith(matrix.runs-on, 'windows')
42+
uses: ilammy/msvc-dev-cmd@v1
43+
44+
- name: Build cppfront
45+
run: ${{ matrix.compiler-path }} ${{ format(matrix.compiler-flags, 'source/cppfront.cpp', './include/', 'cppfront.exe') }}
46+
47+
- name: Run passthrough test
48+
run: echo TODO
49+
50+
- name: Transpile regression-runner
51+
run: ./cppfront.exe -in -cwd test/ regression-runner.cpp2
52+
53+
- name: Build regression-runner
54+
run: ${{ matrix.compiler-path }} ${{ format(matrix.compiler-flags, 'test/regression-runner.cpp', './include/', 'regression-runner.exe') }}
55+
56+
- name: Run regression-runner w/ directory (All tests)
57+
run: ./regression-runner.exe ${{ matrix.target }} ./cppfront.exe ./test/regression ${{ matrix.compiler-path }} ./include/ ${{ format(matrix.compiler-flags, '{source_file}', '{include_dir}', '{exe_out}') }}

.github/workflows/regression-tests.yml

Lines changed: 0 additions & 136 deletions
This file was deleted.

0 commit comments

Comments
 (0)