forked from BYVoid/OpenCC
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (51 loc) · 1.62 KB
/
msvc.yml
File metadata and controls
54 lines (51 loc) · 1.62 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: MSVC
on:
push:
branches: [master]
pull_request:
branches: [master]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
runs-on: windows-latest
strategy:
matrix:
arch:
- amd64
- amd64_x86
- amd64_arm64
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}
- name: build
run: ./build.cmd
- name: test
run: ./test.cmd
- name: list installed files
if: ${{ always() }}
shell: pwsh
run: |
Write-Host "=== Contents of build/bin directory ==="
if (Test-Path build/bin) { Get-ChildItem build/bin -Recurse | Select-Object FullName }
Write-Host "`n=== Contents of build/lib directory ==="
if (Test-Path build/lib) { Get-ChildItem build/lib -Recurse | Select-Object FullName }
Write-Host "`n=== Contents of build/share directory ==="
if (Test-Path build/share) { Get-ChildItem build/share -Recurse | Select-Object FullName }
Write-Host "`n=== Contents of build/include directory ==="
if (Test-Path build/include) { Get-ChildItem build/include -Recurse | Select-Object FullName }
- name: upload artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: opencc-msvc-${{ matrix.arch }}
path: |
build/bin/**
build/lib/**
build/share/**
build/include/**
build/ctest.log
build/Testing/**