Skip to content

Commit 28b2e01

Browse files
committed
[.github/workflows/github-actions.yml] Allow gh release delete to fail; configure dir better on Windows
1 parent 26ebe4d commit 28b2e01

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/github-actions.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: configure (with vcpkg on Windows)
4545
working-directory: ./build
4646
run: |
47-
cmake -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_TOOLCHAIN_FILE="..\..\vcpkg\scripts\buildsystems\vcpkg.cmake" ..
47+
cmake -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_TOOLCHAIN_FILE="%GITHUB_WORKSPACE%\vcpkg\scripts\buildsystems\vcpkg.cmake" ..
4848
shell: cmd
4949
if: matrix.os == 'windows-latest'
5050

@@ -60,8 +60,7 @@ jobs:
6060

6161
- name: configure (Ubuntu)
6262
working-directory: ./build
63-
run: |
64-
cmake -DCMAKE_BUILD_TYPE="Debug" ..
63+
run: cmake -DCMAKE_BUILD_TYPE="Debug" ..
6564
if: matrix.os == 'ubuntu-latest'
6665

6766
- name: build
@@ -78,6 +77,6 @@ jobs:
7877
echo "${{ secrets.GITHUB_TOKEN }}" > .token
7978
gh auth login --with-token < .token
8079
rm .token
81-
gh release delete -y amalgamation
80+
gh release delete -y amalgamation || true
8281
gh release create amalgamation --target master "src/acquire.h"
8382
if: matrix.os == 'ubuntu-latest'

0 commit comments

Comments
 (0)