diff --git a/.github/workflows/build_macos_12.yml b/.github/workflows/build_macos_12.yml index 59588c0..b83ad76 100644 --- a/.github/workflows/build_macos_12.yml +++ b/.github/workflows/build_macos_12.yml @@ -1,4 +1,4 @@ -name: blast_macos_12 +name: blast_macos_12 on: push: @@ -7,35 +7,19 @@ on: branches: [ "main" ] jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [macos-12] - go-version: [1.20] + build: + runs-on: macos-12 steps: - - uses: actions/checkout@v3 - - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: ${{ matrix.go-version }} + - uses: actions/checkout@v3 - - uses: actions/cache@v3 - with: - # In order: - # * Module download cache - # * Build cache (Mac) - path: | - ~/go/pkg/mod - ~/Library/Caches/go-build - key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-${{ matrix.go-version }}- + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.20' - - name: Build - run: go build -v ./... + - name: Build + run: go build -v ./... - - name: Test - run: go clean -testcache && go test -v ./... + - name: Test + run: go test -v ./... diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml deleted file mode 100644 index 7dcade3..0000000 --- a/.github/workflows/go.yml +++ /dev/null @@ -1,28 +0,0 @@ -# This workflow will build a golang project -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go - -name: Go - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - - build: - runs-on: macos-12 - steps: - - uses: actions/checkout@v3 - - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: '1.20' - - - name: Build - run: go build -v ./... - - - name: Test - run: go test -v ./...