File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change 4646
4747jobs :
4848 step-tests :
49- runs-on : ubuntu-latest
49+ runs-on : ${{ matrix.os }}
50+
51+ strategy :
52+ matrix :
53+ os : [macos-latest, ubuntu-latest]
5054
5155 steps :
5256 - uses : actions/checkout@v4
5357
54- - name : Install dependencies
58+ - name : Install dependencies (macOS)
59+ if : startsWith(matrix.os, 'macos')
60+ run : |
61+ brew install cjson
62+ brew install redcode/zxe/z80insnclock
63+
64+ - name : Install dependencies (Ubuntu)
65+ if : startsWith(matrix.os, 'ubuntu')
5566 run : |
5667 curl -L https://zxe.io/scripts/add-zxe-apt-repo.sh | sudo sh
5768 sudo apt-get update
6172 - name : Fetch test files
6273 run : |
6374 mkdir -p "${{ github.workspace }}/build/step-tests"
64- curl -L $(curl -L -s "${{ env.TEST_FILES_QUERY_URL }}" | grep tarball_url | cut -d ":" -f 2,3 | tr -d '" ,') |
65- gzip -cd | tar -C "${{ github.workspace }}/build/step-tests" --strip-components=2 -xf - --wildcards "${{ env.TEST_FILES_PATH }}"
75+ curl -L $(curl -sL "${{ env.TEST_FILES_QUERY_URL }}" | jq -r '.tarball_url') |
76+ gzip -cd |
77+ tar -C "${{ github.workspace }}/build/step-tests" --strip-components=2 -xf - $([[ $(tar --version | head -n 1 | cut -d " " -f 1) = tar ]] && echo --wildcards) "${{ env.TEST_FILES_PATH }}"
6678
6779 - name : Configure CMake
6880 run : >-
You can’t perform that action at this time.
0 commit comments