Skip to content

Commit

Permalink
Use GCC12 on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
dedmen committed Aug 26, 2024
1 parent 236683a commit 1d6d272
Showing 1 changed file with 138 additions and 138 deletions.
276 changes: 138 additions & 138 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,138 +1,138 @@
name: CI

on: [push, pull_request]

jobs:
test-configs:
name: Archive test configs
runs-on: ubuntu-20.04
steps:
- name: Git checkout
uses: actions/checkout@v2

- name: Archive test configs
uses: actions/upload-artifact@v2
with:
name: test configs
path: test/*.json
if-no-files-found: error

linux-build:
name: Linux build
runs-on: ubuntu-20.04
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
submodules: true

- name: Install dependencies
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y gcc-11 g++-11
sudo apt-get remove -y libtbb-dev
- name: Build Linux 64 bit
run: mkdir build-linux64 && cd build-linux64 && cmake .. && cmake --build . --config Release --parallel 2
env:
CC: gcc-11
CXX: g++-11

- name: Upload Linux 64 bit
uses: actions/upload-artifact@v2
with:
name: Linux x64
path: release
if-no-files-found: error

windows-build:
name: Windows build
runs-on: windows-2019
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
submodules: true

- name: Build Windows 64 bit
run: mkdir build-win64 && cd build-win64 && cmake -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 16 2019" -A x64 .. && cmake --build . --config Release

- name: Upload Windows 64 bit
uses: actions/upload-artifact@v2
with:
name: Windows x64
path: Release
if-no-files-found: error

windows-test-ace3:
name: Windows test ACE3
runs-on: windows-2019
needs:
- test-configs
- windows-build
steps:
- name: Git checkout ACE3
uses: actions/checkout@v2
with:
repository: acemod/ACE3
path: z/ace

- name: Git checkout CBA A3
uses: actions/checkout@v2
with:
repository: CBATeam/CBA_A3
path: x/cba

- name: Download test configs
uses: actions/download-artifact@v2
with:
name: test configs

- name: Download ArmaScriptCompiler artifact
uses: actions/download-artifact@v2
with:
name: Windows x64

- name: Setup build folder
run: |
xcopy z\ace\include\a3 a3 /s /e /h /i
copy ace3.json sqfc.json
- name: Compile ACE3
run: |
subst P: .
Release\ArmaScriptCompiler.exe
windows-test-cba-a3:
name: Windows test CBA A3
runs-on: windows-2019
needs:
- test-configs
- windows-build
steps:
- name: Git checkout CBA A3
uses: actions/checkout@v2
with:
repository: CBATeam/CBA_A3
path: x/cba

- name: Download test configs
uses: actions/download-artifact@v2
with:
name: test configs

- name: Download ArmaScriptCompiler artifact
uses: actions/download-artifact@v2
with:
name: Windows x64

- name: Setup build folder
run: |
xcopy x\cba\include\a3 a3 /s /e /h /i
copy cba_a3.json sqfc.json
- name: Compile CBA A3
run: |
subst P: .
Release\ArmaScriptCompiler.exe
name: CI

on: [push, pull_request]

jobs:
test-configs:
name: Archive test configs
runs-on: ubuntu-20.04
steps:
- name: Git checkout
uses: actions/checkout@v2

- name: Archive test configs
uses: actions/upload-artifact@v2
with:
name: test configs
path: test/*.json
if-no-files-found: error

linux-build:
name: Linux build
runs-on: ubuntu-20.04
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
submodules: true

- name: Install dependencies
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y gcc-12 g++-12
sudo apt-get remove -y libtbb-dev
- name: Build Linux 64 bit
run: mkdir build-linux64 && cd build-linux64 && cmake .. && cmake --build . --config Release --parallel 2
env:
CC: gcc-12
CXX: g++-12

- name: Upload Linux 64 bit
uses: actions/upload-artifact@v2
with:
name: Linux x64
path: release
if-no-files-found: error

windows-build:
name: Windows build
runs-on: windows-2019
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
submodules: true

- name: Build Windows 64 bit
run: mkdir build-win64 && cd build-win64 && cmake -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 16 2019" -A x64 .. && cmake --build . --config Release

- name: Upload Windows 64 bit
uses: actions/upload-artifact@v2
with:
name: Windows x64
path: Release
if-no-files-found: error

windows-test-ace3:
name: Windows test ACE3
runs-on: windows-2019
needs:
- test-configs
- windows-build
steps:
- name: Git checkout ACE3
uses: actions/checkout@v2
with:
repository: acemod/ACE3
path: z/ace

- name: Git checkout CBA A3
uses: actions/checkout@v2
with:
repository: CBATeam/CBA_A3
path: x/cba

- name: Download test configs
uses: actions/download-artifact@v2
with:
name: test configs

- name: Download ArmaScriptCompiler artifact
uses: actions/download-artifact@v2
with:
name: Windows x64

- name: Setup build folder
run: |
xcopy z\ace\include\a3 a3 /s /e /h /i
copy ace3.json sqfc.json
- name: Compile ACE3
run: |
subst P: .
Release\ArmaScriptCompiler.exe
windows-test-cba-a3:
name: Windows test CBA A3
runs-on: windows-2019
needs:
- test-configs
- windows-build
steps:
- name: Git checkout CBA A3
uses: actions/checkout@v2
with:
repository: CBATeam/CBA_A3
path: x/cba

- name: Download test configs
uses: actions/download-artifact@v2
with:
name: test configs

- name: Download ArmaScriptCompiler artifact
uses: actions/download-artifact@v2
with:
name: Windows x64

- name: Setup build folder
run: |
xcopy x\cba\include\a3 a3 /s /e /h /i
copy cba_a3.json sqfc.json
- name: Compile CBA A3
run: |
subst P: .
Release\ArmaScriptCompiler.exe

0 comments on commit 1d6d272

Please sign in to comment.