Skip to content

Commit

Permalink
Use an environment variable to define output folder on GA job (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
misl6 authored Jan 1, 2024
1 parent 94dd24e commit b52521d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
pull_request:
create:

env:
ANGLE_BUILDER_OUTPUT_FOLDER: ./angle-builder-output

jobs:
build:
runs-on: macos-latest
Expand All @@ -20,16 +23,16 @@ jobs:
run: pip install .

- name: Build artifacts for macos-x64
run: angle-builder macos-x64 --artifact-output-folder /angle-builder-output
run: angle-builder macos-x64 --artifact-output-folder $ANGLE_BUILDER_OUTPUT_FOLDER

- name: Build artifacts for macos-arm64
run: angle-builder macos-arm64 --artifact-output-folder /angle-builder-output
run: angle-builder macos-arm64 --artifact-output-folder $ANGLE_BUILDER_OUTPUT_FOLDER

- name: Build artifacts for macos-universal
run: angle-builder macos-universal --artifact-output-folder /angle-builder-output
run: angle-builder macos-universal --artifact-output-folder $ANGLE_BUILDER_OUTPUT_FOLDER

- name: Store artifacts
uses: actions/upload-artifact@v4
with:
name: macos-angle-artifacts
path: --artifact-output-folder /angle-builder-output
path: ${{ env.ANGLE_BUILDER_OUTPUT_FOLDER }}

0 comments on commit b52521d

Please sign in to comment.