Skip to content

Commit 39b112d

Browse files
committed
Install dmgbuild in a virtualenv on macOS CI
1 parent 44b301c commit 39b112d

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,11 @@ jobs:
9191

9292
- name: Install dmgbuild
9393
if: runner.os == 'macOS'
94-
run: python3 -m pip install --user dmgbuild
94+
shell: bash
95+
run: |
96+
python3 -m venv .dmgbuild-venv
97+
./.dmgbuild-venv/bin/pip install dmgbuild
98+
echo "${PWD}/.dmgbuild-venv/bin" >> "${GITHUB_PATH}"
9599
96100
- name: Build binary
97101
run: cargo build --release --locked --bin linuxdo-accelerator

.github/workflows/publish-edge-pre-release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,11 @@ jobs:
105105

106106
- name: Install dmgbuild
107107
if: runner.os == 'macOS'
108-
run: python3 -m pip install --user dmgbuild
108+
shell: bash
109+
run: |
110+
python3 -m venv .dmgbuild-venv
111+
./.dmgbuild-venv/bin/pip install dmgbuild
112+
echo "${PWD}/.dmgbuild-venv/bin" >> "${GITHUB_PATH}"
109113
110114
- name: Build binary
111115
run: cargo build --release --locked --bin linuxdo-accelerator

0 commit comments

Comments
 (0)