Skip to content

Commit

Permalink
GitHub Actions ワークフローの依存関係を更新
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukumijima committed Feb 14, 2024
1 parent af8a24a commit a276d56
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ 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
msbuild arib_std_b25.sln /t:Build /p:Configuration=Release /p:Platform=x64 /p:PlatformToolset=v142
- 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: |
Expand All @@ -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 }}
Expand All @@ -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
Expand All @@ -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 }}
Expand All @@ -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
Expand All @@ -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 }}
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
env:
CLICOLOR_FORCE: 1
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: configure
run: |
cmake --version
Expand All @@ -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
Expand Down

0 comments on commit a276d56

Please sign in to comment.