mirror of
https://github.com/kyleneideck/BackgroundMusic
synced 2024-11-29 07:20:27 +00:00
GH Actions: Add a checkout step for the release
job.
Also, use `sudo` to run scripts that `sudo` to hopefully keep those `sudo` commands from failing. They're failing with "sudo: a terminal is required to read the password[...]".
This commit is contained in:
parent
71c11315e5
commit
ada2615d88
1 changed files with 6 additions and 4 deletions
10
.github/workflows/build-test-release.yml
vendored
10
.github/workflows/build-test-release.yml
vendored
|
@ -54,7 +54,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
# `sudo` and `tput` expect this to be set.
|
# `sudo` and `tput` expect this to be set.
|
||||||
export TERM=xterm-256color
|
export TERM=xterm-256color
|
||||||
yes | ./build_and_install.sh
|
yes | sudo ./build_and_install.sh
|
||||||
- name: Print the log file.
|
- name: Print the log file.
|
||||||
run: |
|
run: |
|
||||||
# Put it in a fold because it's so long. TODO: Is this necessary?
|
# Put it in a fold because it's so long. TODO: Is this necessary?
|
||||||
|
@ -106,7 +106,7 @@ jobs:
|
||||||
test
|
test
|
||||||
echo '::endgroup::'
|
echo '::endgroup::'
|
||||||
- name: Uninstall Background Music.
|
- name: Uninstall Background Music.
|
||||||
run: yes | ./uninstall.sh
|
run: yes | sudo ./uninstall.sh
|
||||||
- name: Check the BGM dirs and files were removed.
|
- name: Check the BGM dirs and files were removed.
|
||||||
run: |
|
run: |
|
||||||
if ls -la "/Applications/Background Music.app"; then exit 1; fi
|
if ls -la "/Applications/Background Music.app"; then exit 1; fi
|
||||||
|
@ -120,6 +120,8 @@ jobs:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
- name: Build the .pkg installer.
|
- name: Build the .pkg installer.
|
||||||
run: |
|
run: |
|
||||||
# `sudo` and `tput` expect this to be set.
|
# `sudo` and `tput` expect this to be set.
|
||||||
|
@ -127,14 +129,14 @@ jobs:
|
||||||
# If this build is for a tag with "DEBUG" in its name, build a debug package. (More
|
# If this build is for a tag with "DEBUG" in its name, build a debug package. (More
|
||||||
# detailed logging, no optimization, etc.)
|
# detailed logging, no optimization, etc.)
|
||||||
if [[ "$GITHUB_REF" =~ .*DEBUG.* ]]; then
|
if [[ "$GITHUB_REF" =~ .*DEBUG.* ]]; then
|
||||||
if ! ./package.sh -d; then
|
if ! sudo ./package.sh -d; then
|
||||||
# Print the build logs if it fails.
|
# Print the build logs if it fails.
|
||||||
# TODO: We upload this file in a later step, so this might not be necessary.
|
# TODO: We upload this file in a later step, so this might not be necessary.
|
||||||
cat build_and_install.log
|
cat build_and_install.log
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if ! ./package.sh; then
|
if ! sudo ./package.sh; then
|
||||||
cat build_and_install.log
|
cat build_and_install.log
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue