mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-12-19 08:20:05 +08:00
Some checks failed
Test / test (1.20, macos-15-intel) (push) Has been cancelled
Test / test (1.20, macos-latest) (push) Has been cancelled
Test / test (1.20, ubuntu-24.04-arm) (push) Has been cancelled
Test / test (1.20, ubuntu-latest) (push) Has been cancelled
Test / test (1.20, windows-latest) (push) Has been cancelled
Test / test (1.21, macos-15-intel) (push) Has been cancelled
Test / test (1.21, macos-latest) (push) Has been cancelled
Test / test (1.21, ubuntu-24.04-arm) (push) Has been cancelled
Test / test (1.21, ubuntu-latest) (push) Has been cancelled
Test / test (1.21, windows-latest) (push) Has been cancelled
Test / test (1.22, macos-15-intel) (push) Has been cancelled
Test / test (1.22, macos-latest) (push) Has been cancelled
Test / test (1.22, ubuntu-24.04-arm) (push) Has been cancelled
Test / test (1.22, ubuntu-latest) (push) Has been cancelled
Test / test (1.22, windows-latest) (push) Has been cancelled
Test / test (1.23, macos-15-intel) (push) Has been cancelled
Test / test (1.23, macos-latest) (push) Has been cancelled
Test / test (1.23, ubuntu-24.04-arm) (push) Has been cancelled
Test / test (1.23, ubuntu-latest) (push) Has been cancelled
Test / test (1.23, windows-latest) (push) Has been cancelled
Test / test (1.24, macos-15-intel) (push) Has been cancelled
Test / test (1.24, macos-latest) (push) Has been cancelled
Test / test (1.24, ubuntu-24.04-arm) (push) Has been cancelled
Test / test (1.24, ubuntu-latest) (push) Has been cancelled
Test / test (1.24, windows-latest) (push) Has been cancelled
Test / test (1.25, macos-15-intel) (push) Has been cancelled
Test / test (1.25, macos-latest) (push) Has been cancelled
Test / test (1.25, ubuntu-24.04-arm) (push) Has been cancelled
Test / test (1.25, ubuntu-latest) (push) Has been cancelled
Test / test (1.25, windows-latest) (push) Has been cancelled
Trigger CMFA Update / trigger-CMFA-update (push) Has been cancelled
61 lines
1.5 KiB
YAML
61 lines
1.5 KiB
YAML
name: Test
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- "docs/**"
|
|
- "README.md"
|
|
- ".github/ISSUE_TEMPLATE/**"
|
|
branches:
|
|
- Alpha
|
|
tags:
|
|
- "v*"
|
|
pull_request:
|
|
branches:
|
|
- Alpha
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
os:
|
|
- 'ubuntu-latest' # amd64 linux
|
|
- 'windows-latest' # amd64 windows
|
|
- 'macos-latest' # arm64 macos
|
|
- 'ubuntu-24.04-arm' # arm64 linux
|
|
- 'macos-15-intel' # amd64 macos
|
|
go-version:
|
|
- '1.25'
|
|
- '1.24'
|
|
- '1.23'
|
|
- '1.22'
|
|
- '1.21'
|
|
- '1.20'
|
|
fail-fast: false
|
|
runs-on: ${{ matrix.os }}
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
env:
|
|
CGO_ENABLED: 0
|
|
GOTOOLCHAIN: local
|
|
# Fix mingw trying to be smart and converting paths https://github.com/moby/moby/issues/24029#issuecomment-250412919
|
|
MSYS_NO_PATHCONV: true
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Revert Golang commit for Windows7/8
|
|
if: ${{ runner.os == 'Windows' && matrix.go-version != '1.20' }}
|
|
run: |
|
|
cd $(go env GOROOT)
|
|
patch --verbose -p 1 < $GITHUB_WORKSPACE/.github/patch/go${{matrix.go-version}}.patch
|
|
|
|
- name: Test
|
|
run: go test ./... -v -count=1
|
|
|
|
- name: Test with tag with_gvisor
|
|
run: go test ./... -v -count=1 -tags "with_gvisor" |