Skip to content

Commit

Permalink
Support downloading build artifacts in actions (#127)
Browse files Browse the repository at this point in the history
Signed-off-by: romanodanilo <[email protected]>
Signed-off-by: romanodanilo <[email protected]>
  • Loading branch information
romanodanilo authored Aug 22, 2024
1 parent 3461165 commit 7b3a1c9
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/build-on-change-linux-bare.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@ on:
- runtime/**
- docker/**

workflow_dispatch: # Allows manual triggering of the workflow

jobs:
build-linux:
runs-on: ubuntu-22.04
runs-on: ubuntu-20.04

env:
TEST_ENABLED: ${{ github.event_name == 'pull_request' && 'ON' || 'OFF' }}
steps:
Expand Down Expand Up @@ -78,6 +81,21 @@ jobs:
echo Done.
shell: bash

- name: Prepare build artifacts
run: |
sudo chmod -R +x ./build/src/
shell: bash

- name: Archive release binaries
shell: bash
run: mkdir artifacts && cp ./build/src/result_pooling/ResultPooling ./build/src/report_modules/report_module_text/TextReport ./build/src/report_modules/report_module_github_ci/GithubCIReport ./build/src/report_modules/report_module_gui/ReportGUI artifacts/

- name: Upload release artifact
uses: actions/upload-artifact@v4
with:
name: qc-framework-executables-ubuntu
path: artifacts

- name: Unit test execution
if: github.event_name == 'pull_request'
run: |
Expand All @@ -92,7 +110,7 @@ jobs:
if: github.event_name == 'pull_request' && (success() || failure())
uses: actions/upload-artifact@v4
with:
name: unit-test-report
name: unit-test-report-ubuntu
path: ${{ github.workspace }}/build/Testing/Temporary/LastTest.log

- name: Runtime test execution
Expand All @@ -109,5 +127,5 @@ jobs:
if: github.event_name == 'pull_request' && (success() || failure())
uses: actions/upload-artifact@v4
with:
name: runtime-test-report
name: runtime-test-report-ubuntu
path: ${{ github.workspace }}/runtime/runtime_test.log
17 changes: 17 additions & 0 deletions .github/workflows/build-on-change-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ on:
- runtime/**
- docker/**

workflow_dispatch: # Allows manual triggering of the workflow

jobs:
build-windows:
runs-on: windows-2019
Expand Down Expand Up @@ -114,6 +116,21 @@ jobs:
Write-Output "All installations and setups are complete!"
shell: pwsh

- name: Archive release binaries
run: |
mkdir artifacts
copy .\build\src\result_pooling\Release\ResultPooling.exe .\artifacts\
copy .\build\src\report_modules\report_module_text\Release\TextReport.exe .\artifacts\
copy .\build\src\report_modules\report_module_github_ci\Release\GithubCIReport.exe .\artifacts\
copy .\build\src\report_modules\report_module_gui\Release\ReportGUI.exe .\artifacts\
shell: cmd

- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: qc-framework-executables-windows
path: artifacts

- name: Unit test execution
if: github.event_name == 'pull_request'
run: |
Expand Down

0 comments on commit 7b3a1c9

Please sign in to comment.