Skip to content

feat: using cargo xtask for build & testing #115

feat: using cargo xtask for build & testing

feat: using cargo xtask for build & testing #115

Workflow file for this run

name: Continuous Integration
on:
push:
branches: [ "master", "staging", "trying" ]
pull_request:
branches: [ "master" ]
merge_group:
types: [checks_requested]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
with_rust: ['true', 'false']
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }}, with_rust=${{ matrix.with_rust }}
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- name: Build
run: cargo xtask build --build-type ${{env.BUILD_TYPE}} --with-rust ${{matrix.with_rust}} --verbose true
- name: Test
run: cargo xtask test --build-type ${{env.BUILD_TYPE}}
build_with_hash:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- name: Build
run: cargo xtask build --build-type ${{env.BUILD_TYPE}} --with-rust false --with-hash true --verbose true
- name: Test
run: cargo xtask test --build-type ${{env.BUILD_TYPE}} --with-rust false