修复:linux 系统的资源路径错误 #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Test | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
test: | |
name: Run Tests on ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
include: | |
- os: ubuntu-latest | |
arch: x64 | |
name: Ubuntu x86_64 | |
- os: windows-latest | |
arch: x64 | |
name: Windows x86_64 | |
- os: macos-13 | |
arch: x64 | |
name: macOS x86_64 | |
- os: macos-latest | |
arch: aarch64 | |
name: macOS aarch64 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '21' | |
- name: Set up Gradle | |
uses: gradle/gradle-build-action@v3 | |
- name: Set execute permissions on gradlew | |
if: runner.os != 'Windows' | |
run: chmod +x ./gradlew | |
- name: Run tests | |
run: ./gradlew test |