From 690f67317e9a62e858362da07887c0c5e981b81b Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Wed, 4 May 2022 10:42:12 +0700 Subject: [PATCH 1/2] save --- .github/workflows/ci.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index afeb6b3f3..a3089840b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: tests: strategy: matrix: - os: [ ubuntu-20.04, macos-11, windows-2019 ] # list of os: https://github.com/actions/virtual-environments + os: [ ubuntu-20.04, macos-11, windows-2022 ] # list of os: https://github.com/actions/virtual-environments runs-on: ${{ matrix.os }} steps: @@ -27,10 +27,8 @@ jobs: with: go-version: 1.18.x - name: Install dependencies - run: | - if [ "$RUNNER_OS" == "Linux" ]; then - sudo apt update && sudo apt install build-essential - fi + if: matrix.os == 'ubuntu-20.04' + run: sudo apt update && sudo apt install build-essential shell: bash - uses: actions/cache@v3 with: @@ -42,7 +40,11 @@ jobs: with: version: v1.45 - name: Install deps - if: matrix.os == 'windows-2019' + if: matrix.os == 'windows-2022' run: choco upgrade mingw cmake -y --no-progress - - name: Test + - name: Test win + if: matrix.os == 'windows-2022' run: go test ./... + - name: Test + if: matrix.os != 'windows-2022' + run: go test -tags gofuzzbeta ./... From 48e374b1b8a4dc3a246e1ffb528a5fffece979fe Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Wed, 4 May 2022 10:45:28 +0700 Subject: [PATCH 2/2] save --- .github/workflows/ci.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a3089840b..248724ac1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,22 +26,25 @@ jobs: - uses: actions/setup-go@v3 with: go-version: 1.18.x - - name: Install dependencies - if: matrix.os == 'ubuntu-20.04' - run: sudo apt update && sudo apt install build-essential - shell: bash - uses: actions/cache@v3 with: path: ~/go/pkg/mod key: ${{ matrix.os }}-go-${{ hashFiles('**/go.sum') }} + + - name: Install deps + if: matrix.os == 'ubuntu-20.04' + run: sudo apt update && sudo apt install build-essential + shell: bash + - name: Install deps + if: matrix.os == 'windows-2022' + run: choco upgrade mingw cmake -y --no-progress + - name: Lint if: matrix.os == 'ubuntu-20.04' uses: golangci/golangci-lint-action@v3 with: version: v1.45 - - name: Install deps - if: matrix.os == 'windows-2022' - run: choco upgrade mingw cmake -y --no-progress + - name: Test win if: matrix.os == 'windows-2022' run: go test ./...