Skip to content

Commit

Permalink
Fix typo, update CI not to run tests with external file on windows ('…
Browse files Browse the repository at this point in the history
…\r')
  • Loading branch information
fxpineau committed Oct 18, 2021
1 parent 392c2b2 commit b5f6036
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/libtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,23 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
os: [ubuntu-latest, macOS-latest]

steps:
- uses: actions/checkout@v2
- name: Run lib tests
run: cargo test --workspace --verbose -- --nocapture


test_win:
name: Test on windows # Do not compare with external file due to \r...
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]

steps:
- uses: actions/checkout@v2
- name: Run lib tests
run: cargo test --verbose -- --nocapture

8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,14 @@ jobs:
args: --release --target ${{ matrix.config.target }} -p moc-cli
- name: Create tar (Not Windows)
if: matrix.config.os != 'windows-latest'
run: tar -C target/${{ matrix.config.target }}/release/ -czfv moc-${{ needs.create-github-release.outputs.version }}-${{ matrix.config.target }}.tar.gz moc
run: tar czfv moc-${{ needs.create-github-release.outputs.version }}-${{ matrix.config.target }}.tar.gz -C target/${{ matrix.config.target }}/release/ moc
- name: Create ZIP (Windows)
if: matrix.config.os == 'windows-latest'
run: compress-archive .\target\${{ matrix.config.target }}\release\moc moc-${{ needs.create-github-release.outputs.version }}-${{ matrix.config.target }}.zip
shell: pwsh
run: |
Get-Item *
Get-Item .\target
Compress-Archive -Path .\target\${{ matrix.config.target }}\release\moc -DestinationPath moc-${{ needs.create-github-release.outputs.version }}-${{ matrix.config.target }}.zip
- name: Upload compressed binary asset
if: matrix.config.os != 'windows-latest'
uses: actions/upload-release-asset@v1
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ authors = [
"Matthieu Baumann <[email protected]>"
]
description = """
Liibrary made to create and manipulate HEALPix
Library made to create and manipulate HEALPix
Multi-Order Coverages maps (MOCs), see https://ivoa.net/documents/MOC/
"""
license = "Apache-2.0 OR MIT"
Expand Down

0 comments on commit b5f6036

Please sign in to comment.