Skip to content

Commit 0e15858

Browse files
committed
fix: macosはDockerをinstallしないといけないらしい。
1 parent ddd19f5 commit 0e15858

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/mac.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,21 @@ jobs:
1212
- name: Checkout repository
1313
uses: actions/checkout@v2
1414

15+
- name: Install Docker on macOS
16+
run: |
17+
brew install --cask docker
18+
open /Applications/Docker.app
19+
while ! docker system info > /dev/null 2>&1; do sleep 1; done
20+
1521
- name: Build Docker image
16-
run: docker build --no-cache -f ./linux/Dockerfile -t pyinstaller-macos .
22+
run: docker build --no-cache -f ./linux/Dockerfile -t pyinstaller-linux .
1723

1824
- name: Create dist directory
1925
run: mkdir -p macos/dist
2026

2127
- name: Run Docker container
2228
run: docker run --rm -v "${{ github.workspace }}/macos/dist:/dist" \
23-
pyinstaller-macos pyinstaller main.py \
29+
pyinstaller-linux pyinstaller main.py \
2430
--onedir --onefile --clean --console \
2531
--distpath /dist \
2632
--workpath /build \

0 commit comments

Comments
 (0)