Rename the other way
@@ -96,9 +96,11 @@ jobs:
args: "--workspace --target ${{ matrix.target }}"
use-cross: ${{ matrix.use-cross }}
- - name: Rename Windows Gleam binary
- run: cp "$PWD/target/${{ matrix.target }}/debug/gleam.exe" "$PWD/target/${{ matrix.target }}/debug/gleam"
- if: ${{ matrix.os == 'windows-latest' }}
+ # We rename the binary to gleam.exe on all other platforms to match
+ # Windows so that the commands below can be the same for all platforms
+ - name: Rename Gleam binary
+ run: cp "target/${{ matrix.target }}/debug/gleam" "target/${{ matrix.target }}/debug/gleam.exe"
+ if: ${{ matrix.os != 'windows-latest' }}
- name: Add Gleam to PATH
run: echo "$PWD/target/${{ matrix.target }}/debug" >> $GITHUB_PATH
@@ -109,17 +111,17 @@ jobs:
- name: test/project_javascript on javascript target
run: |
- gleam run
- gleam test
- gleam docs build
+ gleam.exe run
+ gleam.exe test
+ gleam.exe 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
+ gleam.exe run --target erlang
+ gleam.exe test --target erlang
+ gleam.exe docs build
working-directory: ./test/project_javascript
if: ${{ matrix.run-integration-tests }}
