Skip to content

Commit

Permalink
Let's try CLANG and GCC workflows for C++11
Browse files Browse the repository at this point in the history
  • Loading branch information
mrowrpurr committed Jan 7, 2024
1 parent e51a016 commit 87bcda8
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 38 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/linux-cxx11-clang.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Linux C++11
on:
push:
branches: [ "v3" ]
env:
GCC_VERSION: 11
jobs:
build_matrix:
strategy:
matrix:
clang: [ 13, 14, 15, 16, 17 ]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: .xmake-cache
key: xmake-cache-${{ runner.os }}
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
actions-cache-folder: .xmake-cache
- if: matrix.clang == 16
uses: KyleMayes/install-llvm-action@v1
with:
version: "16.0.6"
- if: matrix.clang == 17
uses: KyleMayes/install-llvm-action@v1
with:
version: "17.0.6"
- name: Build
run: CLANG_VERSION=${{ matrix.clang }} xmake build -w -v "Tests cxx11"
- name: Test
run: CLANG_VERSION=${{ matrix.clang }} xmake run "Tests cxx11"
26 changes: 26 additions & 0 deletions .github/workflows/linux-cxx11-gcc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Linux C++11
on:
push:
branches: [ "v3" ]
env:
GCC_VERSION: 11
jobs:
build_matrix:
strategy:
matrix:
gcc: [ 9, 10, 11, 12, 13 ]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: .xmake-cache
key: xmake-cache-${{ runner.os }}
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
actions-cache-folder: .xmake-cache
- name: Build
run: GCC_VERSION=${{ matrix.gcc }} xmake build -w -v "Tests cxx11"
- name: Test
run: GCC_VERSION=${{ matrix.gcc }} xmake run "Tests cxx11"
19 changes: 0 additions & 19 deletions .github/workflows/linux-cxx11-gcc11.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/linux-cxx11-gcc12.yaml

This file was deleted.

0 comments on commit 87bcda8

Please sign in to comment.