Skip to content

Commit

Permalink
Merge pull request #53 from sturman/update-actions
Browse files Browse the repository at this point in the history
Update GitHub Actions steps. Update Go version
  • Loading branch information
akiomik authored May 7, 2024
2 parents a0b2459 + 44c0ed5 commit 64ff1d8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,16 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.18', '1.19' ]
go: [ '1.20', '1.21', '1.22' ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
check-latest: true
cache: true
- run: make build
- run: make test
- uses: dominikh/staticcheck-action@v1.2.0
- uses: dominikh/staticcheck-action@v1.3.1
with:
version: "2022.1.1"
version: "2023.1.7"
install-go: false
9 changes: 4 additions & 5 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.19
go-version: 1.21
check-latest: true
cache: true
- uses: goreleaser/goreleaser-action@v3
- uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.19.2-alpine AS build
FROM golang:1.21-alpine AS build

WORKDIR /app
COPY . .
Expand All @@ -8,7 +8,7 @@ RUN CGO_ENABLED=0 go build -o /vimeo-dl .

############################################################

FROM alpine:3.17 AS no-ffmpeg
FROM alpine:3.19 AS no-ffmpeg
COPY --from=build /vimeo-dl /usr/bin/vimeo-dl
WORKDIR /downloads
ENTRYPOINT [ "vimeo-dl" ]
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/akiomik/vimeo-dl

go 1.19
go 1.21

require github.com/spf13/cobra v1.8.0

Expand Down

0 comments on commit 64ff1d8

Please sign in to comment.