Skip to content

Commit

Permalink
Add extra fixes for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanrainer committed Jul 14, 2024
1 parent 32769a5 commit c070d47
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ jobs:
yum -y install perl-core gcc openssl-devel openssl git
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
. "$HOME/.cargo/env"
cargo build --target ${{ matrix.compile_target.target }}
cargo build --target ${{ matrix.compile_target.target }} -p xtask
cargo build
cargo build -p xtask
- if: ${{ matrix.compile_target.container == '' }}
name: "Build binaries on host"
run: |
Expand All @@ -74,8 +74,8 @@ jobs:
with:
name: ${{ matrix.compile_target.target }}
path: |
target/${{ matrix.compile_target.target }}/debug/rover
target/${{ matrix.compile_target.target }}/debug/xtask
target/${{ matrix.compile_target.target }}/debug/rover*
target/${{ matrix.compile_target.target }}/debug/xtask*
if-no-files-found: error
retention-days: 5
smoke_tests:
Expand Down Expand Up @@ -113,6 +113,7 @@ jobs:
name: "Checkout rover repo"
- uses: actions/download-artifact@v4
name: "Download artifacts built in previous stages"
if: ${{ !contains(matrix.testing_target.binary_under_test, 'windows')}}
- name: "Set permissions on artifacts correctly"
run: |
chmod +x ./${{ matrix.testing_target.binary_under_test }}/{rover,xtask}
Expand All @@ -131,6 +132,10 @@ jobs:
if: ${{ matrix.testing_target.container_to_use == ''}}
name: "Install volta"
- name: Run Smoke Tests
if: ${{ matrix.testing_target.container_to_use == ''}}
if: ${{ matrix.testing_target.container_to_use == '' && !contains(matrix.testing_target.binary_under_test, 'windows')}}
run: |
./${{ matrix.testing_target.binary_under_test }}/xtask smoke --binary-path ./${{ matrix.testing_target.binary_under_test }}/rover --federation-version "${{ matrix.composition-version }}" --router-version "${{ matrix.router-version }}"
- name: Run Smoke Tests (Windows)
if: ${{ matrix.testing_target.container_to_use == '' && contains(matrix.testing_target.binary_under_test, 'windows')}}
run: |
.\${{ matrix.testing_target.binary_under_test }}\xtask.exe smoke --binary-path .\${{ matrix.testing_target.binary_under_test }}\rover --federation-version "${{ matrix.composition-version }}" --router-version "${{ matrix.router-version }}"

0 comments on commit c070d47

Please sign in to comment.