Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,41 @@ jobs:
shell: cmd
run: call test-gmt.bat

windows-winget:
name: Windows - winget
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
arch: ["win64"]

env:
GMT_INSTALLER_URL: https://github.com/GenericMappingTools/gmt/releases/download/6.1.1/gmt-6.1.1-${{ matrix.arch }}.exe

steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout
uses: actions/[email protected]

- name: Install winget
shell: pwsh
run: |
(New-Object System.Net.WebClient).DownloadFile("https://github.com/microsoft/winget-cli/releases/download/v0.2.3162-preview/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.appxbundle", "DesktopAppInstaller.appx")
Add-AppxPackage DesktopAppInstaller.appx

- name: Install GMT
shell: cmd
run: winget install gmt

- name: Run tests
shell: bash
run: bash test-gmt.sh

- name: Run Batch tests
shell: cmd
run: call test-gmt.bat