summaryrefslogtreecommitdiffstats
path: root/.github/workflows/windows.yml
blob: f42df65a87509f823fc4d9cb4cf100c828dde077 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Windows CI
on: [push, pull_request]

jobs:
  msys2-ucrt64:
    runs-on: windows-latest
    defaults:
      run:
        shell: msys2 {0}
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0
      - uses: msys2/setup-msys2@v2
        with:
          msystem: UCRT64
          update: true
      - name: Install dependencies
        run: ./scripts/msys2-install-deps
      - name: Build
        run: ./scripts/msys2-build
      - name: Test
        run: ./dist/borg.exe -V
      - uses: actions/upload-artifact@v3
        with:
          name: borg-windows
          path: dist/borg.exe