Skip to content

Commit

Permalink
ci: test use alternative download for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Nov 30, 2023
1 parent 9213998 commit 40f17bd
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
path: target/${{ matrix.arch }}/release

- name: install
if: ${{ matrix.arch != 'docker' }}
if: matrix.os == 'windows-latest'
run: |
chmod +x target/${{ matrix.arch }}/release/${{ matrix.binary }}
cp target/${{ matrix.arch }}/release/${{ matrix.binary }} .
Expand All @@ -92,6 +92,18 @@ jobs:
run: |
docker load --input target/${{ matrix.arch }}/release/rebar.tar
- name: data download (non-windows)
if: ${{ matrix.arch != 'windows-latest' }}
run: |
wget https://raw.githubusercontent.com/phac-nml/rebar/${{ github.sha }}/data/example2.fasta
- name: data download (windows)
if: matrix.arch == 'windows-latest'
run: |
$url = "https://raw.githubusercontent.com/phac-nml/rebar/${{ github.sha }}/data/example2.fasta"
$client = New-Object System.Net.WebClient
$client.DownloadFile($url, "example2.fasta")
- name: dataset list
run: |
${{ env.RUN_CMD }} dataset list
Expand Down

0 comments on commit 40f17bd

Please sign in to comment.