yml syntax #4
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: [push, pull_request] | ||
jobs: | ||
linux_build: | ||
runs-on: ubuntu-latest | ||
env: | ||
CXX: g++ | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Build | ||
run: | | ||
make -j8 | ||
- name: Archive vhlt Linux tools | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: vhlt-linux-tools | ||
path: ./bin/* | ||
macos_build: | ||
runs-on: macos-latest | ||
env: | ||
CXX: clang++ | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Build | ||
run: | | ||
make -j8 | ||
- name: Archive vhlt macOS tools | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: vhlt-macos-tools | ||
path: ./bin/* | ||
windows_build: | ||
runs-on: windows-latest | ||
env: | ||
SOLUTION_FILE_PATH: . | ||
BUILD_CONFIGURATION: Release | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Add MSBuild to PATH | ||
uses: microsoft/[email protected] | ||
- name: Build vhlt Windows tools | ||
working-directory: ${{env.GITHUB_WORKSPACE}} | ||
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} | ||
- name: Archive vhlt Windows tools | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: vhlt-windows-tools | ||
path: D:\a\vhlt\bin\* |