Align GitHub workflow/job run conditions #55
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows Alternative Compilers | |
on: | |
push: | |
branches: [ '*' ] | |
pull_request: | |
branches: [ '*' ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
cancel-in-progress: true | |
jobs: | |
mingw: | |
if: github.repository_owner == 'aws' | |
runs-on: windows-latest | |
steps: | |
- name: Install NASM | |
uses: ilammy/[email protected] | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup MinGW | |
uses: egor-tensin/[email protected] | |
id: setup_mingw | |
with: | |
static: 0 | |
- name: Setup CMake | |
uses: threeal/[email protected] | |
with: | |
generator: Ninja | |
c-compiler: ${{ steps.setup_mingw.outputs.gcc }} | |
cxx-compiler: ${{ steps.setup_mingw.outputs.gxx }} | |
options: | | |
CMAKE_SYSTEM_NAME=Windows \ | |
CMAKE_SYSTEM_PROCESSOR=x86_64 \ | |
CMAKE_BUILD_TOOL=C:/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin/ninja.exe \ | |
CMAKE_FIND_ROOT_PATH=C:/ProgramData/chocolatey/lib/mingw/tools/install/mingw64 \ | |
CMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \ | |
CMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \ | |
CMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \ | |
- name: Build Project | |
run: cmake --build ./build --target all | |
- name: Run tests | |
run: cmake --build ./build --target run_tests | |
clang: | |
if: github.repository_owner == 'aws' | |
runs-on: windows-latest | |
steps: | |
- name: Install NASM | |
uses: ilammy/[email protected] | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install LLVM and Clang | |
uses: KyleMayes/install-llvm-action@v2 | |
id: clang | |
with: | |
version: 16 | |
env: true | |
- name: Setup CMake | |
uses: threeal/[email protected] | |
with: | |
generator: Ninja | |
c-compiler: "C:/Program Files/LLVM/bin/clang.exe" | |
cxx-compiler: "C:/Program Files/LLVM/bin/clang++.exe" | |
options: | | |
CMAKE_SYSTEM_NAME=Windows \ | |
CMAKE_SYSTEM_PROCESSOR=x86_64 \ | |
CMAKE_BUILD_TOOL=ninja.exe \ | |
- name: Build Project | |
run: cmake --build ./build --target all | |
- name: Run tests | |
run: cmake --build ./build --target run_tests |