From a9ca70ad4ad7ad670c33f3dd199cd87614925814 Mon Sep 17 00:00:00 2001 From: Dave Date: Mon, 21 Aug 2023 16:16:47 -0400 Subject: [PATCH] infra: add setup-go@4, test against 1.20.x (go.mod) and stable (1.21) (#935) --- .github/workflows/test.yml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2b9b4402..7236c4b2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,12 +16,21 @@ concurrency: jobs: ubuntu-latest: runs-on: ubuntu-latest - + strategy: + matrix: + go-version: ['1.20.x', 'stable'] steps: - name: Clone uses: actions/checkout@v3 with: submodules: true + - name: Setup Go ${{ matrix.go-version }} + uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go-version }} + # You can test your matrix by printing the current Go version + - name: Display Go version + run: go version - name: Dependencies run: | sudo apt-get update @@ -52,13 +61,21 @@ jobs: macOS-latest: runs-on: macOS-latest - + strategy: + matrix: + go-version: ['1.20.x', 'stable'] steps: - name: Clone uses: actions/checkout@v3 with: submodules: true - + - name: Setup Go ${{ matrix.go-version }} + uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go-version }} + # You can test your matrix by printing the current Go version + - name: Display Go version + run: go version - name: Test run: | CMAKE_ARGS="-DLLAMA_F16C=OFF -DLLAMA_AVX512=OFF -DLLAMA_AVX2=OFF -DLLAMA_FMA=OFF" make test \ No newline at end of file