Skip to content

Commit

Permalink
test(ci): +env.linux
Browse files Browse the repository at this point in the history
  • Loading branch information
2moe committed May 24, 2024
1 parent 108d037 commit 90186b6
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/test-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
include:
- arch: x64
runner: ubuntu-24.04
- arch: arm64
runner: circle-arm64
# - arch: arm64
# runner: circle-arm64
- arch: arm64
runner: circle-arm64
runs-on: ${{matrix.runner}}
Expand All @@ -26,24 +26,33 @@ jobs:
# shell: zsh --pipefail -fex {0}
env:
circle_runner: ${{ startsWith(matrix.runner, 'circle') }}
linux: ${{ runner.os == 'Linux' }}
steps:
# - name: install zsh
# shell: sh -e {0}
# run: ${{ vars.INSTALL_ZSH }}
# - uses: actions/checkout@v4
# with:
# ref: dev
- name: trigger arm64 runner
if: (!fromJSON(env.circle_runner))
run: ${{ secrets.LARGE_ARM64_RUNNER }}
# - name: trigger arm64 runner
# if: (!fromJSON(env.circle_runner))
# run: ${{ secrets.LARGE_ARM64_RUNNER }}

- name: trigger arm64 runner
if: (!fromJSON(env.circle_runner))
run: ${{ secrets.MEDIUM_ARM64_RUNNER }}

- name: init runner
if: fromJSON(env.linux)
run: sudo touch /run/runner_connected

- name: test
run: |
uname -a
cat /proc/cpuinfo
nproc
free -mh
- name: disconnect
if: always() && fromJSON(env.linux)
run: sudo unlink /run/runner_connected

0 comments on commit 90186b6

Please sign in to comment.