Update Github actions workflows to use the latests versions actions #134
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: Build | |
on: | |
schedule: | |
# Run each Sun | |
- cron: '0 0 * * 0' | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Release | |
jobs: | |
win-build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Setup Environment | |
id: install-boost | |
uses: MarkusJx/[email protected] | |
with: | |
boost_version: 1.79.0 | |
platform_version: 2022 | |
toolset: msvc | |
- name: Build | |
env: | |
BOOST_ROOT: ${{steps.install-boost.outputs.BOOST_ROOT}} | |
run: | | |
cmake -B build | |
cmake --build build --config ${{env.BUILD_TYPE}} | |
- name: Test | |
run: | | |
cd build/test | |
ctest | |
- name: Upload artifacts | |
uses: actions/[email protected] | |
with: | |
name: win-numero | |
path: build/${{env.BUILD_TYPE}}/numero.exe | |
linux-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Setup Environment | |
id: install-boost | |
uses: MarkusJx/[email protected] | |
with: | |
boost_version: 1.79.0 | |
platform_version: 20.04 | |
- name: Build | |
env: | |
BOOST_ROOT: ${{steps.install-boost.outputs.BOOST_ROOT}} | |
run: | | |
cmake -B build | |
cmake --build build --config ${{env.BUILD_TYPE}} | |
- name: Test | |
run: | | |
cd build/test | |
ctest | |
- name: Upload artifacts | |
uses: actions/[email protected] | |
with: | |
name: linux-numero | |
path: build/numero | |
mac-build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Setup Environment | |
id: install-boost | |
uses: MarkusJx/[email protected] | |
with: | |
boost_version: 1.79.0 | |
platform_version: 11 | |
- name: Build | |
env: | |
BOOST_ROOT: ${{steps.install-boost.outputs.BOOST_ROOT}} | |
run: | | |
cmake -B build | |
cmake --build build --config ${{env.BUILD_TYPE}} | |
- name: Test | |
run: | | |
cd build/test | |
ctest | |
- name: Upload artifacts | |
uses: actions/[email protected] | |
with: | |
name: mac-numero | |
path: build/numero |