-
Notifications
You must be signed in to change notification settings - Fork 253
44 lines (39 loc) · 1.26 KB
/
build.yml
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
name: Build
on:
push:
branches: [ master ]
tags: [ '*' ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
config:
- { platform: "x64", archive: "-x64" }
- { platform: "Win32", archive: "" }
- { platform: "ARM64", archive: "-arm64" }
- { platform: "ARM", archive: "-arm" }
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure
run: cmake -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -DCMAKE_C_FLAGS_RELEASE="/MT /O2" -A ${{matrix.config.platform}} -B ${{github.workspace}}/build
- name: Build
run: cmake --build ${{github.workspace}}/build --config Release --target putty pscp psftp puttytel plink pageant puttygen pterm -j
- name: Archive
if: ${{ github.ref_type == 'tag' }}
uses: actions/upload-artifact@v4
with:
name: putty${{matrix.config.archive}}-${{github.ref_name}}
path: |
build/Release/putty.exe
build/Release/pscp.exe
build/Release/psftp.exe
build/Release/puttytel.exe
build/Release/plink.exe
build/Release/pageant.exe
build/Release/puttygen.exe
build/Release/pterm.exe
retention-days: 1