Skip to content

Github Action Changes #39

Github Action Changes

Github Action Changes #39

Workflow file for this run

name: 'Build'
inputs:
zip-output:
required: true
runs:
steps:
- uses: actions/github-script@v6
shell: bash
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- name: cmake configure
shell: bash
run: |
export CMAKE_TOOLCHAIN_FILE=$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake
cmake -B build -S .
- name: cmake build
shell: bash
run: cmake --build build --target package --config Release
- uses: actions/upload-artifact@v3
shell: bash
if: startsWith(github.ref, 'refs/tags/v')
with:
name: ${{ inputs.zip-output }}
path: build/comic_reader-*.zip