Skip to content

Commit

Permalink
Remove absolute path to flock; change PATH in GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
iSoron committed Aug 21, 2021
1 parent a781a1f commit 1866743
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ jobs:
path: uhabits-android/build/outputs/

- name: Install flock
run: brew install util-linux
run: |
brew install util-linux
echo "/usr/local/opt/util-linux/bin" >> $GITHUB_PATH
- name: Run Android Tests
run: ./build.sh android-tests ${{ matrix.api }}
Expand Down
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ android_test() {
AVDNAME=${AVD_PREFIX}${API}

(
/usr/local/opt/util-linux/bin/flock 10
flock 10
log_info "Stopping Android emulator..."
while [[ -n $(pgrep -f ${AVDNAME}) ]]; do
pkill -9 -f ${AVDNAME}
Expand All @@ -91,7 +91,7 @@ android_test() {
--package "system-images;android-$API;default;x86_64" \
--device "Nexus 4" || return 1

/usr/local/opt/util-linux/bin/flock -u 10
flock -u 10
) 10>/tmp/uhabitsTest.lock

log_info "Launching emulator..."
Expand Down

0 comments on commit 1866743

Please sign in to comment.