Variable binary name
@@ -33,26 +33,32 @@ jobs:
target: x86_64-unknown-linux-gnu
use-cross: false
run-integration-tests: true
+ gleam-name: gleam
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
use-cross: true
run-integration-tests: true
+ gleam-name: gleam
- os: ubuntu-latest
target: aarch64-unknown-linux-gnu
use-cross: true
run-integration-tests: false # Cannot run aarch64 binaries on x86_64
+ gleam-name: gleam
- os: ubuntu-latest
target: aarch64-unknown-linux-musl
use-cross: true
run-integration-tests: false # Cannot run aarch64 binaries on x86_64
+ gleam-name: gleam
- os: macos-latest
target: x86_64-apple-darwin
use-cross: false
run-integration-tests: true
+ gleam-name: gleam
- os: windows-latest
target: x86_64-pc-windows-msvc
use-cross: false
run-integration-tests: true
+ gleam-name: gleam.exe
steps:
- name: Checkout repository
uses: actions/checkout@v2
@@ -105,17 +111,17 @@ jobs:
- name: test/project_javascript on javascript target
run: |
- gleam run
- gleam test
- gleam docs build
+ ${{ matrix.gleam-name }} run
+ ${{ matrix.gleam-name }} test
+ ${{ matrix.gleam-name }} docs build
working-directory: ./test/project_javascript
if: ${{ matrix.run-integration-tests }}
- name: test/project_javascript on erlang target
run: |
- gleam run --target erlang
- gleam test --target erlang
- gleam docs build
+ ${{ matrix.gleam-name }} run --target erlang
+ ${{ matrix.gleam-name }} test --target erlang
+ ${{ matrix.gleam-name }} docs build
working-directory: ./test/project_javascript
if: ${{ matrix.run-integration-tests }}
