mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-13 09:49:11 +03:00
properly set env
This commit is contained in:
parent
20f16893cb
commit
4969fbc287
18
.github/workflows/basic_cli_build_release.yml
vendored
18
.github/workflows/basic_cli_build_release.yml
vendored
@ -1,14 +1,8 @@
|
||||
on:
|
||||
pull_request:
|
||||
env:
|
||||
ARCHIVE_FORMAT: "tar.gz"
|
||||
workflow_dispatch:
|
||||
env:
|
||||
ARCHIVE_FORMAT: "tar.br"
|
||||
release:
|
||||
types: [edited]
|
||||
env:
|
||||
ARCHIVE_FORMAT: "tar.gz" # gz for quick test, br takes longer
|
||||
|
||||
# this cancels workflows currently in progress if you start a new one
|
||||
concurrency:
|
||||
@ -128,15 +122,23 @@ jobs:
|
||||
|
||||
- run: cp macos-x86_64-files/* ./basic-cli/src
|
||||
|
||||
# gz for quick test, br takes longer
|
||||
- run: |
|
||||
if [ "$GITHUB_EVENT_NAME" == 'workflow_dispatch' ]; then
|
||||
echo "ARCHIVE_FORMAT=\"tar.br\"" >> "$GITHUB_ENV"
|
||||
else
|
||||
echo "ARCHIVE_FORMAT=\"tar.gz\"" >> "$GITHUB_ENV"
|
||||
fi
|
||||
|
||||
- run: echo $ARCHIVE_FORMAT
|
||||
|
||||
- run: echo ${ARCHIVE_FORMAT}
|
||||
|
||||
- run: echo ${{ env.ARCHIVE_FORMAT }}
|
||||
|
||||
- run: ./roc_nightly/roc build --bundle=${ARCHIVE_FORMAT} ./basic-cli/src/main.roc
|
||||
- run: ./roc_nightly/roc build --bundle=${{ env.ARCHIVE_FORMAT }} ./basic-cli/src/main.roc
|
||||
|
||||
- run: echo "TAR_FILENAME=$(ls -d basic-cli/src/* | grep '${ARCHIVE_FORMAT}')" >> $GITHUB_ENV
|
||||
- run: echo "TAR_FILENAME=$(ls -d basic-cli/src/* | grep '${{ env.ARCHIVE_FORMAT }}')" >> $GITHUB_ENV
|
||||
|
||||
- name: Upload platform archive
|
||||
uses: actions/upload-artifact@v3
|
||||
|
Loading…
Reference in New Issue
Block a user