Skip to content

test

test #22

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
paths-ignore:
- 'doc/**'
- 'examples/**'
- '.vscode/**'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up CMake
uses: jwlawson/actions-setup-cmake@v1.14
with:
cmake-version: 3.21.3
- name: Configure
run: cmake -S . -B build
- name: Build
run: cmake --build build
- name: deploy pre-cleanup
uses: JesseTG/rm@v1.0.3
with:
path: src
- name: deploy pre-cleanup
uses: JesseTG/rm@v1.0.3
with:
path: examples
- name: deploy pre-cleanup
uses: JesseTG/rm@v1.0.3
with:
path: .github
- name: deploy pre-cleanup
uses: JesseTG/rm@v1.0.3
with:
path: .vscode
- name: Deploy
if: matrix.os == 'ubuntu-latest'
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: binaries
FOLDER: build/build/
SQUASH_HISTORY: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TARGET_DIR: linux
- name: Deploy
if: matrix.os == 'windows-latest'
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: binaries
FOLDER: build/build/
SQUASH_HISTORY: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TARGET_DIR: win