From 8a7e654d4b4ee2494f181753d5b10bb66c33cdfe Mon Sep 17 00:00:00 2001 From: jeessy2 Date: Tue, 11 Jun 2024 14:45:36 +0800 Subject: [PATCH] fix: ci --- .github/workflows/go-cross.yml | 47 ---------------------------------- .github/workflows/main.yml | 2 -- 2 files changed, 49 deletions(-) delete mode 100644 .github/workflows/go-cross.yml diff --git a/.github/workflows/go-cross.yml b/.github/workflows/go-cross.yml deleted file mode 100644 index 4d68aee..0000000 --- a/.github/workflows/go-cross.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: Go Matrix -on: [push, pull_request] - -jobs: - - cross: - name: Go - runs-on: ${{ matrix.os }} - env: - CGO_ENABLED: 0 - - strategy: - matrix: - go-version: [ 1.20, 1.x ] - os: [ubuntu-latest, macos-latest, windows-latest] - - steps: - # https://github.com/marketplace/actions/setup-go-environment - - name: Set up Go ${{ matrix.go-version }} - uses: actions/setup-go@v2 - with: - go-version: ${{ matrix.go-version }} - - # https://github.com/marketplace/actions/checkout - - name: Checkout code - uses: actions/checkout@v2 - - # https://github.com/marketplace/actions/cache - - name: Cache Go modules - uses: actions/cache@v3 - with: - # In order: - # * Module download cache - # * Build cache (Linux) - # * Build cache (Mac) - # * Build cache (Windows) - path: | - ~/go/pkg/mod - ~/.cache/go-build - ~/Library/Caches/go-build - %LocalAppData%\go-build - key: ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-${{ matrix.go-version }}-go- - - - name: Test - run: go test -v -cover ./... diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 150d48b..c63ead1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,8 +2,6 @@ name: Main on: push: - branches: - - master pull_request: jobs: