1 #169
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: ci | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v1 | |
- name: Build | |
run: | | |
mkdir build | |
cd build | |
cmake .. | |
MSBUILD meojson.sln /t:rebuild /p:Configuration="Debug" /p:Platform="x64" /m | |
- name: Run Testing | |
run: | | |
./build/Debug/sample.exe | |
./build/Debug/json5_parse_sample.exe | |
./build/Debug/testing.exe | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: sample-windows | |
path: build | |
ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: | | |
mkdir build | |
cd build | |
cmake .. | |
make -j$(nproc) | |
- name: Run Testing | |
run: | | |
./build/sample | |
./build/json5_parse_sample | |
./build/testing | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: sample-linux | |
path: build | |
macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Dependencies | |
run: brew install ninja | |
- name: Install compiler (AppleClang 16) | |
run: | | |
brew install llvm | |
- name: Build | |
run: | | |
mkdir build | |
cd build | |
cmake .. | |
cmake --build . | |
- name: Run Testing | |
run: | | |
./build/sample | |
./build/json5_parse_sample | |
./build/testing | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: sample-macos | |
path: build |