ci: test env setting

This commit is contained in:
itsmattkc
2020-09-16 16:44:35 +10:00
committed by GitHub
parent 9879ec7eaf
commit 005a725fc9
+14 -4
View File
@@ -19,6 +19,16 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set selected color
run: echo '::set-env name=SELECTED_COLOR::green'
- name: Get color (cmd)
shell: cmd
run: echo 'The selected color is' $SELECTED_COLOR
- name: Get color (cmd 2)
shell: cmd
run: echo 'The selected color is' %SELECTED_COLOR%
- name: Create Build Environment
# Some projects don't allow in-source building, so create a separate build directory
@@ -85,15 +95,15 @@ jobs:
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C $BUILD_TYPE
- name: Generate Package Name
id: vars
run: echo ::set-env name=PKGNAME::Olive-$(git rev-parse --short=8 ${{github.sha}})-Windows-x86_64
- name: Create Package
working-directory: ${{runner.workspace}}/build
shell: cmd
run: mkdir olive-editor && copy app\olive-editor.exe olive-editor && copy app\olive-editor.pdb olive-editor && windeployqt olive-editor\olive-editor.exe && copy %GITHUB_WORKSPACE%\bin\*.dll olive-editor && copy %GITHUB_WORKSPACE%\out\Default\crashpad_handler.exe olive-editor
- name: Generate Package Name
id: vars
run: echo ::set-env name=PKGNAME::Olive-$(git rev-parse --short=8 ${{github.sha}})-Windows-x86_64
- name: Deploy Installer
working-directory: ${{runner.workspace}}/build