fix: test arm

This commit is contained in:
Jason Song 2023-04-21 18:17:11 +08:00
parent d6d88224b5
commit d37920e730
No known key found for this signature in database
GPG Key ID: 8402EEEE4511A8B5
1 changed files with 22 additions and 2 deletions

View File

@ -8,9 +8,8 @@ jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, arm-ubuntu-latest]
brew_version: ["3.6.14", "latest"]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
container:
image: homebrew/brew:${{ matrix.brew_version }}
env:
@ -29,3 +28,24 @@ jobs:
tea --version
brew install gitea/gitea/gitea
gitea --version
test_arm:
runs-on: ubuntu-latest
container:
# the arm image hasn't been updated for years, maybe we should find a better way to test arm or just remove it
image: markkrj/homebrew-arm:latest
env:
HOMEBREW_NO_AUTO_UPDATE: 1
steps:
- name: install node
# to use actions/checkout
run: |
brew install node
node --version
- uses: actions/checkout@v3
- name: test install
run: |
brew tap gitea/gitea "${PWD}"
brew install gitea/gitea/tea
tea --version
brew install gitea/gitea/gitea
gitea --version