.workflows: update github actions

This commit is contained in:
Julien Bisconti 2024-01-15 00:16:18 +01:00 committed by Brad Fitzpatrick
parent 8bb27e4b34
commit 9d0c73955a
5 changed files with 26 additions and 38 deletions

View File

@ -15,22 +15,17 @@ jobs:
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
- name: Symlink source into GOPATH for devcam
run: |
mkdir $(go env GOPATH)/src
ln -s $(pwd) $(go env GOPATH)/src/perkeep.org
- name: Check for fmt compliance
run: |
go fmt ./...

View File

@ -15,19 +15,20 @@ jobs:
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
- name: Install fuse
run: sudo apt-get install --yes fuse3
- name: Symlink source into GOPATH for devcam
run: |
mkdir $(go env GOPATH)/src
ln -s $(pwd) $(go env GOPATH)/src/perkeep.org
- name: Build and test
run: |
go run make.go -v=true

View File

@ -15,19 +15,20 @@ jobs:
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
- name: install sqlite
run: brew install sqlite3 pkg-config
- name: Symlink source into GOPATH for devcam
run: |
mkdir $(go env GOPATH)/src
ln -s $(pwd) $(go env GOPATH)/src/perkeep.org
- name: Build and test
run: |
go run make.go -v=true

View File

@ -15,21 +15,17 @@ jobs:
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
- name: Symlink source into GOPATH for devcam
run: |
mkdir $(go env GOPATH)/src
ln -s $(pwd) $(go env GOPATH)/src/perkeep.org
- name: Check for tidyness
run: |
go mod tidy

View File

@ -15,22 +15,17 @@ jobs:
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
path: ~\go\pkg\mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
- name: Symlink source into GOPATH for devcam
run: |
mkdir "$(go env GOPATH)/src"
New-Item -ItemType SymbolicLink -Path "$(go env GOPATH)/src/perkeep.org" -Target "$(pwd)"
- name: Build and test
run: |
go run make.go -v