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