Skip to content

Commit

Permalink
Merge pull request #1 from artichoke/7zip
Browse files Browse the repository at this point in the history
Fix path errors when resolving 7zip on windows builds
  • Loading branch information
lopopolo authored May 21, 2020
2 parents c0e2153 + 3068adc commit 1a0a828
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Nightly Builder
on:
push:
tags:
- "*"
schedule:
- cron: "0 0 * * *" # build nightly!

Expand All @@ -15,7 +18,11 @@ jobs:
- name: Get the release version from the tag
if: env.ARTICHOKE_NIGHTLY_VERSION == ''
run: |
echo "::set-env name=ARTICHOKE_NIGHTLY_VERSION::nightly-$(date '+%Y-%m-%d')"
if [[ "${{ github.event_name }}" == "schedule" ]]; then
echo "::set-env name=ARTICHOKE_NIGHTLY_VERSION::nightly-$(date '+%Y-%m-%d')"
else
echo "::set-env name=ARTICHOKE_NIGHTLY_VERSION::$(basename "${{ github.ref }}")"
fi
echo "version is: ${{ env.ARTICHOKE_NIGHTLY_VERSION }}"
- name: Clone Artichoke
Expand Down Expand Up @@ -169,7 +176,7 @@ jobs:
if [ "${{ matrix.os }}" = "windows-latest" ]; then
cp "artichoke/target/${{ matrix.target }}/release/artichoke.exe" "$staging/"
cp "artichoke/target/${{ matrix.target }}/release/airb.exe" "$staging/"
7z a "$staging.zip" "$staging"
"/c/Program Files/7-Zip/7z.exe" a "$staging.zip" "$staging"
echo "::set-env name=ASSET::$staging.zip"
else
cp "artichoke/target/${{ matrix.target }}/release/artichoke" "$staging/"
Expand Down

0 comments on commit 1a0a828

Please sign in to comment.