From a276d56649131c44879e06dfdecfdb22a196fc85 Mon Sep 17 00:00:00 2001 From: tsukumi Date: Wed, 14 Feb 2024 00:11:09 +0000 Subject: [PATCH] =?UTF-8?q?GitHub=20Actions=20=E3=83=AF=E3=83=BC=E3=82=AF?= =?UTF-8?q?=E3=83=95=E3=83=AD=E3=83=BC=E3=81=AE=E4=BE=9D=E5=AD=98=E9=96=A2?= =?UTF-8?q?=E4=BF=82=E3=82=92=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-package.yml | 22 +++++++++++----------- .github/workflows/build.yml | 16 ++++++++-------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build-package.yml b/.github/workflows/build-package.yml index 91d9294..87a6846 100644 --- a/.github/workflows/build-package.yml +++ b/.github/workflows/build-package.yml @@ -7,8 +7,8 @@ jobs: runs-on: windows-2019 steps: - name: setup msbuild - uses: microsoft/setup-msbuild@v1.1 - - uses: actions/checkout@v3 + uses: microsoft/setup-msbuild@v2 + - uses: actions/checkout@v4 - name: build run: | msbuild arib_std_b25.sln /t:Build /p:Configuration=Release /p:Platform=Win32 /p:PlatformToolset=v142 @@ -16,7 +16,7 @@ jobs: - name: get output name id: get_output_name run: | - $version = bash -c 'LC_ALL=ja_JP.utf8 grep -oP ''#define VERSION_STRING ""\\K[^""]+'' aribb25/td.c' + $version = (Get-Content aribb25/td.c | Select-String -Pattern '#define VERSION_STRING "(.*)"').Matches.Groups[1].Value echo "archive_path=libaribb25_${version}_windows.zip" >> $ENV:GITHUB_OUTPUT - name: package run: | @@ -31,7 +31,7 @@ jobs: Copy-Item -Path libaribb25\64bit\libaribb25.dll -Destination libaribb25\64bit\B25Decoder.dll -Force 7z a -tzip ${{ steps.get_output_name.outputs.archive_path }} libaribb25 - name: save artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ steps.get_output_name.outputs.archive_path }} path: ${{ steps.get_output_name.outputs.archive_path }} @@ -40,7 +40,7 @@ jobs: name: Debian Package runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: setup run: sudo apt-get install -y build-essential cmake cmake-data libpcsclite-dev pkg-config - name: build @@ -54,7 +54,7 @@ jobs: echo "deb_path=$(ls build/libaribb25_*.deb)" >> "$GITHUB_OUTPUT" echo "deb_file=$(basename $(ls build/libaribb25_*.deb))" >> "$GITHUB_OUTPUT" - name: save artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ steps.get_output_name.outputs.deb_file }} path: ${{ steps.get_output_name.outputs.deb_path }} @@ -63,11 +63,11 @@ jobs: name: Debian Package (ARM) runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: docker/setup-qemu-action@v2 - - uses: docker/setup-buildx-action@v2 + - uses: actions/checkout@v4 + - uses: docker/setup-qemu-action@v3 + - uses: docker/setup-buildx-action@v3 - name: setup - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: context: .github/workflows/ tags: arm64v8/ubuntu:build @@ -85,7 +85,7 @@ jobs: echo "deb_path=$(ls build/libaribb25_*.deb)" >> "$GITHUB_OUTPUT" echo "deb_file=$(basename $(ls build/libaribb25_*.deb))" >> "$GITHUB_OUTPUT" - name: save artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ steps.get_output_name.outputs.deb_file }} path: ${{ steps.get_output_name.outputs.deb_path }} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bd9cd42..bf312e0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,7 @@ jobs: env: CLICOLOR_FORCE: 1 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: setup run: sudo apt-get install -y build-essential clang cmake cmake-data libpcsclite-dev - name: configure @@ -44,11 +44,11 @@ jobs: - arm64v8/debian runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: docker/setup-qemu-action@v2 - - uses: docker/setup-buildx-action@v2 + - uses: actions/checkout@v4 + - uses: docker/setup-qemu-action@v3 + - uses: docker/setup-buildx-action@v3 - name: setup - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: context: .github/workflows/ tags: ${{ matrix.image }}:build @@ -80,7 +80,7 @@ jobs: env: CLICOLOR_FORCE: 1 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: configure run: | cmake --version @@ -104,8 +104,8 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: setup msbuild - uses: microsoft/setup-msbuild@v1.1 - - uses: actions/checkout@v3 + uses: microsoft/setup-msbuild@v2 + - uses: actions/checkout@v4 - name: build run: | msbuild arib_std_b25.sln /t:Build /p:Configuration=Release /p:Platform=Win32 /p:PlatformToolset=v142