Skip to content

Migrate C# / .NET Framework 4.5 -> 4.8 build from Appveyor to GH Actions #271

Migrate C# / .NET Framework 4.5 -> 4.8 build from Appveyor to GH Actions

Migrate C# / .NET Framework 4.5 -> 4.8 build from Appveyor to GH Actions #271

Workflow file for this run

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
subtraget: _98
implementation: msvc142
- target: cpp_stl
subtraget: _11
implementation: msvc142
- target: csharp
implementation: net45
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
cd ..
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