Skip to content

Commit a3a3399

Browse files
committed
feat: arm64ビルドジョブの環境をubuntu-24.04-arm64に変更し、不要なステップを削除
1 parent c875381 commit a3a3399

1 file changed

Lines changed: 5 additions & 21 deletions

File tree

.github/workflows/publish-raspberrypi.yml

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,12 @@ on:
77
workflow_dispatch:
88

99
jobs:
10-
# Job 1: arm64のビルド
1110
build-arm64:
12-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-24.04-arm64
1312
steps:
1413
- name: Checkout git repo
1514
uses: actions/checkout@v4
1615

17-
- name: Set up QEMU
18-
uses: docker/setup-qemu-action@v3
19-
with:
20-
platforms: arm64
21-
22-
- name: Install build tools
23-
run: sudo apt-get install -y build-essential
24-
25-
- name: Install libfuse2
26-
run: |
27-
sudo apt-get update
28-
sudo apt-get install -y libfuse2
29-
3016
- name: Set up Node.js
3117
uses: actions/setup-node@v3
3218
with:
@@ -35,10 +21,10 @@ jobs:
3521
- name: Install dependencies
3622
run: npm install
3723

38-
- name: Install serialport from source
24+
- name: Install native modules
3925
run: |
4026
cd release/app
41-
npm install serialport --build-from-source --arch=arm64
27+
npm install
4228
4329
- name: Build application
4430
run: npm run build
@@ -47,13 +33,12 @@ jobs:
4733
env:
4834
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4935
run: |
50-
npm exec electron-builder -- --publish always --arm64
36+
npm exec electron-builder -- --publish always
5137
5238
# Job 2: armv7lのビルド
5339
build-armv7l:
54-
runs-on: ubuntu-latest
40+
runs-on: ubuntu-24.04-arm64
5541
steps:
56-
# 1. ソースコードをチェックアウト
5742
- name: Checkout repository
5843
uses: actions/checkout@v4
5944

@@ -63,7 +48,6 @@ jobs:
6348
- name: Set up Docker Buildx
6449
uses: docker/setup-buildx-action@v3
6550

66-
# 2. arm32v7 Dockerコンテナ内でビルドと公開の全工程を実行
6751
- name: Build and Publish inside arm32v7 container
6852
env:
6953
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)