Migrate C# / .NET Framework 4.5 -> 4.8 build from Appveyor to GH Actions #290
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: {} | |
jobs: | |
windows: | |
runs-on: windows-latest | |
# NB: see https://github.com/actions/runner-images/blob/main/images/win/Windows2022-Readme.md for what's available in this image | |
strategy: | |
matrix: | |
tsv: | |
# - target: cpp_stl | |
# subtarget: _98 | |
# implementation: msvc142 | |
# - target: cpp_stl | |
# subtarget: _11 | |
# implementation: msvc142 | |
- target: csharp | |
implementation: net48 | |
fail-fast: false | |
env: | |
TARGET: ${{matrix.tsv.target}} | |
SUBTARGET: ${{matrix.tsv.subtarget}} | |
IMPL: ${{matrix.tsv.implementation}} | |
steps: | |
- name: Dump matrix context | |
env: | |
MATRIX_CONTEXT: ${{ toJson(matrix) }} | |
run: echo "$MATRIX_CONTEXT" | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- name: prepare | |
run: | | |
git clone https://github.com/kaitai-io/kaitai_struct_tests tests | |
cp -r compiled tests/compiled | |
./prepare-$TARGET | |
shell: bash | |
- name: run | |
env: | |
GH_JOB_ID: unknown | |
GH_HTML_URL: ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID} | |
run: | | |
cd tests | |
./ci-$TARGET$SUBTARGET | |
shell: bash | |
- name: publish | |
env: | |
BOT_SSH_KEY: ${{secrets.BOT_SSH_KEY}} | |
run: | | |
./push_artifacts/git_config_kaitai_bot | |
./push_artifacts/publish \ | |
-o kaitai-io \ | |
-r ci_artifacts \ | |
-m "Build results of ${GITHUB_REF#refs/heads/*} kaitai-io/ci_targets@$GITHUB_SHA" \ | |
-b "${TARGET}${SUBTARGET}"/"$IMPL-windows-x64" \ | |
-- --exclude=.git --exclude=.travis.yml tests/test_out | |
shell: bash |