Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added GitHub Actions workflow. #1

Merged
merged 1 commit into from Aug 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/build.yaml
@@ -0,0 +1,56 @@
name: Build
on: [workflow_dispatch, pull_request]
env:
TERM: xterm-256color

jobs:
build:
name: ${{ matrix.name }}
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
include:
- name: Build - Ubuntu
runs-on: ubuntu-latest

- name: Build - Windows (win32)
runs-on: windows-latest
cmake-args: -A Win32

- name: Build - Windows (win64)
runs-on: windows-latest

- name: Build - macOS
runs-on: macos-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Generate project
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Release ${{ matrix.cmake-args}}

- name: Build project
run: cmake --build build --config Release

- name: Upload build
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.name }}
path: |
**/*.so
**/*.dll
**/*.dylib
retention-days: 30

- name: Upload build errors
uses: actions/upload-artifact@v2
if: failure()
with:
name: CMake Errors - ${{ matrix.name }}
path: |
**/CMakeFiles/CMakeOutput.log
**/CMakeFiles/CMakeError.log
**/Testing/Temporary/LastTest.log
retention-days: 30