Skip to content

Commit 4a3c776

Browse files
committed
Add framework compose filename action call
1 parent 03269c4 commit 4a3c776

File tree

1 file changed

+27
-8
lines changed

1 file changed

+27
-8
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ jobs:
3333
include:
3434
- os: ubuntu-latest
3535
generator: Ninja
36+
platform-alias: "ubuntu22.04-x86_64"
3637

3738
- os: windows-latest
3839
generator: "Visual Studio 17 2022"
40+
platform-alias: "win64"
3941

4042
runs-on: ${{ matrix.os }}
4143

@@ -51,19 +53,36 @@ jobs:
5153
with:
5254
opendaq-framework-release-version: ${{ github.event.inputs.opendaq-framework-version || 'latest' }}
5355

54-
- name: Download openDAQ framework
55-
uses: ./.github/actions/framework-download
56+
# - name: Download openDAQ framework
57+
# uses: ./.github/actions/framework-download
58+
# with:
59+
# src-opendaq-framework-dev: ${{ steps.opendaq-framework.outputs.uri }}
60+
# dst-opendaq-framework-dev: ${{ runner.temp }}/${{ steps.opendaq-framework.outputs.artefact }}
61+
# aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
62+
# aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
63+
# aws_region: ${{ secrets.AWS_REGION }}
64+
65+
- name: Compose framework filename
66+
id: compose-framework-filename
67+
uses: openDAQ/actions/framework-compose-filename@action-framework-compose-filename
5668
with:
57-
src-opendaq-framework-dev: ${{ steps.opendaq-framework.outputs.uri }}
58-
dst-opendaq-framework-dev: ${{ runner.temp }}/${{ steps.opendaq-framework.outputs.artefact }}
59-
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
60-
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
61-
aws_region: ${{ secrets.AWS_REGION }}
69+
platform: ${{ matrix.platform-alias }}
70+
token: ${{ secrets.GITHUB_TOKEN }}
71+
72+
- name: Download openDAQ framework
73+
shell: bash
74+
env:
75+
DESTINATION_DIR: ${{ runner.temp }}
76+
OPENDAQ_VERSION: ${{ steps.compose-framework-filename.version }}
77+
OPENDAQ_FILENAME: ${{ steps.compose-framework-filename.filename }}
78+
run: |
79+
DESTINATION_DIR="$(echo "$DESTINATION_DIR" | sed 's|\\|/|g')"
80+
gh release download "${OPENDAQ_VERSION}" --pattern "${OPENDAQ_FILENAME}" --dir "${DESTINATION_DIR}" --repo openDAQ/openDAQ
6281
6382
- name: Install openDAQ framework package
6483
uses: ./.github/actions/framework-install
6584
with:
66-
opendaq-framework-package-filename: ${{ steps.opendaq-framework.outputs.artefact }}
85+
opendaq-framework-package-filename: ${{ steps.compose-framework-filename.outputs.filename }}
6786

6887
- name: Configure simple device module with CMake
6988
run: cmake -B build/output -S . -G "${{ matrix.generator }}" -DEXAMPLE_MODULE_ENABLE_TESTS=ON -DCMAKE_BUILD_TYPE=Release

0 commit comments

Comments
 (0)