Skip to content

Switch to Nuke build system (Part 2). #275

Switch to Nuke build system (Part 2).

Switch to Nuke build system (Part 2). #275

Workflow file for this run

name: ci
on:
push:
branches:
- 'main'
- 'releases/**'
- 'develop'
tags:
- 'v*'
pull_request:
branches:
- 'main'
jobs:
test:
runs-on: ${{ matrix.platform.os }}-latest
strategy:
fail-fast: false
matrix:
platform:
- { os: windows, architecture: x86, configuration: debug, build-script: .\build.cmd }
- { os: windows, architecture: x86, configuration: release, build-script: .\build.cmd }
- { os: windows, architecture: x64, configuration: debug, build-script: .\build.cmd }
- { os: windows, architecture: x64, configuration: release, build-script: .\build.cmd }
- { os: ubuntu, architecture: x64, configuration: debug, build-script: ./build.sh }
- { os: ubuntu, architecture: x64, configuration: release, build-script: ./build.sh }
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: ${{ matrix.platform.build-script }} test --configuration ${{ matrix.platform.configuration }} --architecture ${{ matrix.platform.architecture }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AZURE_DEVOPS_PAT: ${{ secrets.AZURE_DEVOPS_PAT }}
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform.os }}_${{ matrix.platform.configuration }}_${{ matrix.platform.architecture }}
path: |
./artifacts/bin/**/*
./artifacts/log/**/*
./artifacts/pkg/**/*
./artifacts/tst/**/*
if-no-files-found: error
publish:
name: publish
needs: [ test ]
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: .\build.cmd publish --configuration release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AZURE_DEVOPS_PAT: ${{ secrets.AZURE_DEVOPS_PAT }}
- uses: actions/upload-artifact@v4
with:
name: publish
path: |
./artifacts/bin/**/*
./artifacts/log/**/*
./artifacts/pkg/**/*
./artifacts/tst/**/*
if-no-files-found: error