|
27 | 27 |
|
28 | 28 | jobs: |
29 | 29 | build-and-test: |
| 30 | + permissions: |
| 31 | + contents: read |
| 32 | + actions: read |
| 33 | + |
| 34 | + env: |
| 35 | + GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} |
30 | 36 |
|
31 | 37 | strategy: |
32 | 38 | matrix: |
33 | 39 | include: |
34 | 40 | - os: ubuntu-latest |
35 | 41 | generator: Ninja |
36 | | - platform-alias: "ubuntu22.04-x86_64" |
| 42 | + platform-alias: "ubuntu20.04-x86_64" |
37 | 43 |
|
38 | 44 | - os: windows-latest |
39 | 45 | generator: "Visual Studio 17 2022" |
@@ -62,22 +68,48 @@ jobs: |
62 | 68 | # aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
63 | 69 | # aws_region: ${{ secrets.AWS_REGION }} |
64 | 70 |
|
| 71 | + - name: Actions temp |
| 72 | + shell: bash |
| 73 | + run: | |
| 74 | + mkdir actions-temp |
| 75 | +
|
| 76 | + # - name: Checkout actions |
| 77 | + # uses: actions/checkout@v4 |
| 78 | + # with: |
| 79 | + # repository: openDAQ/actions |
| 80 | + # ref: action-framework-download-release |
| 81 | + # path: ./actions-temp |
| 82 | + # token: ${{ secrets.PAT_TOKEN }} |
| 83 | + |
65 | 84 | - name: Compose framework filename |
66 | 85 | id: compose-framework-filename |
67 | | - uses: openDAQ/actions/framework-compose-filename@action-framework-compose-filename |
| 86 | + uses: openDAQ/actions/framework-compose-filename@ction-framework-download-release |
| 87 | + # uses: ./actions-temp/framework-compose-filename |
68 | 88 | with: |
69 | 89 | platform: ${{ matrix.platform-alias }} |
70 | | - token: ${{ secrets.GITHUB_TOKEN }} |
| 90 | + token: ${{ secrets.PAT_TOKEN }} |
71 | 91 |
|
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 |
| 92 | + - name: Download framework filename |
| 93 | + id: download-framework-filename |
| 94 | + uses: openDAQ/actions/framework-download-release@action-framework-download-release |
| 95 | + # uses: ./actions-temp/framework-download-release |
| 96 | + with: |
| 97 | + artifact: ${{ steps.compose-framework-filename.outputs.filename }} |
| 98 | + version: ${{ steps.compose-framework-filename.outputs.version }} |
| 99 | + token: ${{ secrets.PAT_TOKEN }} |
| 100 | + |
| 101 | + #- name: Download openDAQ framework |
| 102 | + # shell: bash |
| 103 | + # env: |
| 104 | + # DESTINATION_DIR: ${{ runner.temp }} |
| 105 | + # OPENDAQ_VERSION: ${{ steps.compose-framework-filename.outputs.version }} |
| 106 | + # OPENDAQ_FILENAME: ${{ steps.compose-framework-filename.outputs.filename }} |
| 107 | + # run: | |
| 108 | + # DESTINATION_DIR="$(echo "$DESTINATION_DIR" | sed 's|\\|/|g')" |
| 109 | + # echo "$DESTINATION_DIR" |
| 110 | + # echo "$OPENDAQ_FILENAME" |
| 111 | + # echo "$OPENDAQ_VERSION" |
| 112 | + # gh release download "${OPENDAQ_VERSION}" --pattern "${OPENDAQ_FILENAME}" --dir "${DESTINATION_DIR}" --repo openDAQ/openDAQ |
81 | 113 |
|
82 | 114 | - name: Install openDAQ framework package |
83 | 115 | uses: ./.github/actions/framework-install |
|
0 commit comments