Skip to content

Some cleanups now BWS 5 b10 works #13

Some cleanups now BWS 5 b10 works

Some cleanups now BWS 5 b10 works #13

Workflow file for this run

name: Feature
on:
pull_request:
branches:
- main
jobs:
build_feature:
name: Build feature
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: ubuntu-latest
name: linux
dir_build: ./build
file_name: tuning-note-claps.clap
- os: macos-latest
name: mac
dir_build: ./build
file_name: tuning-note-claps.clap
zip_arguments: -r
- os: windows-latest
name: win
dir_build: ./build/Release
file_name: tuning-note-claps.clap
steps:
- name: Install Windows dependencies
if: matrix.os == 'windows-latest'
run: choco install zip
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Build binary
run: |
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64"
cmake --build ./build --config Release
- name: List files
run: ls "${{ matrix.dir_build }}"
- name: Compress binary
run: |
cd "${{ matrix.dir_build }}"
zip ${{ matrix.zip_arguments }} ${{ matrix.file_name }}-${{ matrix.name }}.zip ${{ matrix.file_name }}
- name: Upload binary
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.file_name }}-${{ matrix.name }}.zip
path: ${{ matrix.dir_build }}/${{ matrix.file_name }}-${{ matrix.name }}.zip