Skip to content

Commit

Permalink
TBD
Browse files Browse the repository at this point in the history
  • Loading branch information
coldav committed Oct 28, 2024
1 parent be927ac commit 8cd5f1e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
28 changes: 21 additions & 7 deletions .github/workflows/planned_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,29 +41,43 @@ jobs:
target_list: ${{ steps.step1.outputs.target_list }}
os_list: ${{ steps.step1.outputs.os_list }}
steps:
- uses: actions/checkout@v3
- id: step1
run: |
echo "target_list=$target_list" >> "$GITHUB_OUTPUT"
echo "os_list=$os_list" >> "$GITHUB_OUTPUT"
# echo "target_list=${{ inputs.target_list }}" >> "$GITHUB_OUTPUT"
# echo "os_list=${{ inputs.os_list }}" >> "$GITHUB_OUTPUT"
# echo "target_list=$target_list" >> "$GITHUB_OUTPUT"
# echo "os_list=$os_list" >> "$GITHUB_OUTPUT"
echo 'target_list=${{ inputs.target_list }}' >> "$GITHUB_OUTPUT"
echo 'os_list=${{ inputs.os_list }}' >> "$GITHUB_OUTPUT"
cat $GITHUB_OUTPUT
create_ock_artefacts:
needs: calc_matrix
strategy:
matrix:
arch: ${{ fromJson(needs.calc_matrix.outputs.target_list) }}
target: ${{ fromJson(needs.calc_matrix.outputs.target_list) }}
os: ${{ fromJson(needs.calc_matrix.outputs.os_list) }}
build_type: [RelAssert]
exclude:
- os: windows-2019
target: aarch64
- os: windows-2019
target: riscv64

runs-on: ${{ matrix.os }}
steps:
- name: Build ock (pretend)
# if: ${{ contains(inputs.target_linux.matrix.arch, matrix.arch) }}
run:
echo Running for ${{ matrix.arch }} on os ${{ matrix.os}} input is ${{ inputs.target_linux }})
echo Running for ${{ matrix.target }} on os ${{ matrix.os}} > artifact.txt

- name: 'Upload Artifact'
uses: actions/upload-artifact@v4
with:
name: ock_${{matrix.os}}_${{matrix.target}}
path: artifact.txt
retention-days: 1


# input is ${{ inputs.target_list}} and ${{ inputs.os_list }}

# echo "${{ matrix.os }} ${{ matrix.build_type }} ${{ matrix.arch }}" > foo.txt

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/planned_testing_caller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ jobs:
if: ${{ github.event_name == 'pull_request' }}
uses: ./.github/workflows/planned_testing.yml
with:
target_list: '["x86_64"]'
os_list: '["ubuntu-22.04"]'
target_list: '["x86_64", "aarch64", "riscv64"]'
os_list: '["ubuntu-22.04", "windows-2019"]'
# os_list: '["ubuntu-22.04"]'
# target_host_aarch64_linux: true

# # Could have multiple here
Expand Down

0 comments on commit 8cd5f1e

Please sign in to comment.