mirror of https://github.com/perkeep/perkeep.git
.workflows: update github actions
This commit is contained in:
parent
8bb27e4b34
commit
9d0c73955a
|
@ -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 ./...
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue