Skip to content

Commit

Permalink
Github Action Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Suraj-Yadav committed Jul 9, 2024
1 parent 28ce6b5 commit 0ca086e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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

0 comments on commit 0ca086e

Please sign in to comment.