Merge pull request #964 from skrashevich/update-github-actions-vers

upd(ci): upgrade GitHub Actions to newer versions
This commit is contained in:
Alex X
2024-04-20 13:59:59 +03:00
committed by GitHub
3 changed files with 36 additions and 36 deletions
+25 -25
View File
@@ -15,87 +15,87 @@ jobs:
env: { CGO_ENABLED: 0 } env: { CGO_ENABLED: 0 }
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v4 uses: actions/setup-go@v5
with: { go-version: '1.21' } with: { go-version: '1.21' }
- name: Build go2rtc_win64 - name: Build go2rtc_win64
env: { GOOS: windows, GOARCH: amd64 } env: { GOOS: windows, GOARCH: amd64 }
run: go build -ldflags "-s -w" -trimpath run: go build -ldflags "-s -w" -trimpath
- name: Upload go2rtc_win64 - name: Upload go2rtc_win64
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: { name: go2rtc_win64, path: go2rtc.exe } with: { name: go2rtc_win64, path: go2rtc.exe }
- name: Build go2rtc_win32 - name: Build go2rtc_win32
env: { GOOS: windows, GOARCH: 386 } env: { GOOS: windows, GOARCH: 386 }
run: go build -ldflags "-s -w" -trimpath run: go build -ldflags "-s -w" -trimpath
- name: Upload go2rtc_win32 - name: Upload go2rtc_win32
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: { name: go2rtc_win32, path: go2rtc.exe } with: { name: go2rtc_win32, path: go2rtc.exe }
- name: Build go2rtc_win_arm64 - name: Build go2rtc_win_arm64
env: { GOOS: windows, GOARCH: arm64 } env: { GOOS: windows, GOARCH: arm64 }
run: go build -ldflags "-s -w" -trimpath run: go build -ldflags "-s -w" -trimpath
- name: Upload go2rtc_win_arm64 - name: Upload go2rtc_win_arm64
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: { name: go2rtc_win_arm64, path: go2rtc.exe } with: { name: go2rtc_win_arm64, path: go2rtc.exe }
- name: Build go2rtc_linux_amd64 - name: Build go2rtc_linux_amd64
env: { GOOS: linux, GOARCH: amd64 } env: { GOOS: linux, GOARCH: amd64 }
run: go build -ldflags "-s -w" -trimpath run: go build -ldflags "-s -w" -trimpath
- name: Upload go2rtc_linux_amd64 - name: Upload go2rtc_linux_amd64
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: { name: go2rtc_linux_amd64, path: go2rtc } with: { name: go2rtc_linux_amd64, path: go2rtc }
- name: Build go2rtc_linux_i386 - name: Build go2rtc_linux_i386
env: { GOOS: linux, GOARCH: 386 } env: { GOOS: linux, GOARCH: 386 }
run: go build -ldflags "-s -w" -trimpath run: go build -ldflags "-s -w" -trimpath
- name: Upload go2rtc_linux_i386 - name: Upload go2rtc_linux_i386
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: { name: go2rtc_linux_i386, path: go2rtc } with: { name: go2rtc_linux_i386, path: go2rtc }
- name: Build go2rtc_linux_arm64 - name: Build go2rtc_linux_arm64
env: { GOOS: linux, GOARCH: arm64 } env: { GOOS: linux, GOARCH: arm64 }
run: go build -ldflags "-s -w" -trimpath run: go build -ldflags "-s -w" -trimpath
- name: Upload go2rtc_linux_arm64 - name: Upload go2rtc_linux_arm64
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: { name: go2rtc_linux_arm64, path: go2rtc } with: { name: go2rtc_linux_arm64, path: go2rtc }
- name: Build go2rtc_linux_arm - name: Build go2rtc_linux_arm
env: { GOOS: linux, GOARCH: arm, GOARM: 7 } env: { GOOS: linux, GOARCH: arm, GOARM: 7 }
run: go build -ldflags "-s -w" -trimpath run: go build -ldflags "-s -w" -trimpath
- name: Upload go2rtc_linux_arm - name: Upload go2rtc_linux_arm
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: { name: go2rtc_linux_arm, path: go2rtc } with: { name: go2rtc_linux_arm, path: go2rtc }
- name: Build go2rtc_linux_armv6 - name: Build go2rtc_linux_armv6
env: { GOOS: linux, GOARCH: arm, GOARM: 6 } env: { GOOS: linux, GOARCH: arm, GOARM: 6 }
run: go build -ldflags "-s -w" -trimpath run: go build -ldflags "-s -w" -trimpath
- name: Upload go2rtc_linux_armv6 - name: Upload go2rtc_linux_armv6
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: { name: go2rtc_linux_armv6, path: go2rtc } with: { name: go2rtc_linux_armv6, path: go2rtc }
- name: Build go2rtc_linux_mipsel - name: Build go2rtc_linux_mipsel
env: { GOOS: linux, GOARCH: mipsle } env: { GOOS: linux, GOARCH: mipsle }
run: go build -ldflags "-s -w" -trimpath run: go build -ldflags "-s -w" -trimpath
- name: Upload go2rtc_linux_mipsel - name: Upload go2rtc_linux_mipsel
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: { name: go2rtc_linux_mipsel, path: go2rtc } with: { name: go2rtc_linux_mipsel, path: go2rtc }
- name: Build go2rtc_mac_amd64 - name: Build go2rtc_mac_amd64
env: { GOOS: darwin, GOARCH: amd64 } env: { GOOS: darwin, GOARCH: amd64 }
run: go build -ldflags "-s -w" -trimpath run: go build -ldflags "-s -w" -trimpath
- name: Upload go2rtc_mac_amd64 - name: Upload go2rtc_mac_amd64
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: { name: go2rtc_mac_amd64, path: go2rtc } with: { name: go2rtc_mac_amd64, path: go2rtc }
- name: Build go2rtc_mac_arm64 - name: Build go2rtc_mac_arm64
env: { GOOS: darwin, GOARCH: arm64 } env: { GOOS: darwin, GOARCH: arm64 }
run: go build -ldflags "-s -w" -trimpath run: go build -ldflags "-s -w" -trimpath
- name: Upload go2rtc_mac_arm64 - name: Upload go2rtc_mac_arm64
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: { name: go2rtc_mac_arm64, path: go2rtc } with: { name: go2rtc_mac_arm64, path: go2rtc }
docker-master: docker-master:
@@ -103,11 +103,11 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Docker meta - name: Docker meta
id: meta id: meta
uses: docker/metadata-action@v4 uses: docker/metadata-action@v5
with: with:
images: ${{ github.repository }} images: ${{ github.repository }}
tags: | tags: |
@@ -116,20 +116,20 @@ jobs:
type=match,pattern=v(.*),group=1 type=match,pattern=v(.*),group=1
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v3
- name: Login to DockerHub - name: Login to DockerHub
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
uses: docker/login-action@v2 uses: docker/login-action@v3
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push - name: Build and push
uses: docker/build-push-action@v4 uses: docker/build-push-action@v5
with: with:
context: . context: .
platforms: | platforms: |
@@ -148,11 +148,11 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Docker meta - name: Docker meta
id: meta-hw id: meta-hw
uses: docker/metadata-action@v4 uses: docker/metadata-action@v5
with: with:
images: ${{ github.repository }} images: ${{ github.repository }}
flavor: | flavor: |
@@ -164,20 +164,20 @@ jobs:
type=match,pattern=v(.*),group=1 type=match,pattern=v(.*),group=1
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v3
- name: Login to DockerHub - name: Login to DockerHub
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
uses: docker/login-action@v2 uses: docker/login-action@v3
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push - name: Build and push
uses: docker/build-push-action@v4 uses: docker/build-push-action@v5
with: with:
context: . context: .
file: hardware.Dockerfile file: hardware.Dockerfile
+4 -4
View File
@@ -25,13 +25,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Setup Pages - name: Setup Pages
uses: actions/configure-pages@v3 uses: actions/configure-pages@v4
- name: Upload artifact - name: Upload artifact
uses: actions/upload-pages-artifact@v1 uses: actions/upload-pages-artifact@v3
with: with:
path: './website' path: './website'
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
id: deployment id: deployment
uses: actions/deploy-pages@v2 uses: actions/deploy-pages@v4
+7 -7
View File
@@ -21,10 +21,10 @@ jobs:
GOARCH: ${{ matrix.arch }} GOARCH: ${{ matrix.arch }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v2 uses: actions/setup-go@v5
with: with:
go-version: '1.21' go-version: '1.21'
@@ -70,13 +70,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v3
- name: Build and push - name: Build and push
uses: docker/build-push-action@v4 uses: docker/build-push-action@v5
with: with:
context: . context: .
platforms: linux/${{ matrix.platform }} platforms: linux/${{ matrix.platform }}
@@ -89,7 +89,7 @@ jobs:
- name: Build and push Hardware - name: Build and push Hardware
if: matrix.platform == 'amd64' if: matrix.platform == 'amd64'
uses: docker/build-push-action@v4 uses: docker/build-push-action@v5
with: with:
context: . context: .
file: hardware.Dockerfile file: hardware.Dockerfile