Skip to content

Commit b6c7e8d

Browse files
committed
Bringing everything into main repo for github builds
Signed-off-by: Jorgen Lundman <lundman@lundman.net>
1 parent 44eb245 commit b6c7e8d

2 files changed

Lines changed: 72 additions & 0 deletions

File tree

File renamed without changes.
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: windows-build
2+
3+
on:
4+
push:
5+
branches:
6+
- new-github
7+
tags-ignore:
8+
- '*'
9+
pull_request:
10+
branches:
11+
- new-github
12+
workflow_dispatch:
13+
14+
concurrency:
15+
group: windows-build-${{ github.ref }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
build:
20+
runs-on: windows-2022
21+
timeout-minutes: 30
22+
23+
steps:
24+
- name: Enter MSVC dev environment
25+
uses: ilammy/msvc-dev-cmd@v1
26+
27+
- name: Checkout OpenZFS
28+
uses: actions/checkout@v5
29+
with:
30+
fetch-depth: 0
31+
submodules: recursive
32+
33+
- name: Checkout OpenSSL
34+
uses: actions/checkout@v5
35+
with:
36+
repository: openzfsonwindows/openssl
37+
ref: openssl-3.5.5
38+
path: openssl
39+
40+
- name: Show OpenSSL tree
41+
shell: pwsh
42+
run: |
43+
Get-ChildItem -Recurse openssl\lib\VC\x64 | Select-Object FullName
44+
45+
- name: Configure CMake
46+
shell: pwsh
47+
run: |
48+
cmake -G "Ninja" `
49+
-B "${{ github.workspace }}/out/build/x64-Debug" `
50+
"${{ github.workspace }}" `
51+
-DOPENSSL_ROOT_DIR="${{ github.workspace }}/openssl" `
52+
-DOPENSSL_INCLUDE_DIR="${{ github.workspace }}/openssl/include" `
53+
-DCRYPTO_STATIC_TEST="${{ github.workspace }}/openssl/lib/VC/x64/MTd/libcrypto_static.lib" `
54+
-DLIB_EAY_DEBUG="${{ github.workspace }}/openssl/lib/VC/x64/MTd/libcrypto_static.lib" `
55+
-DLIB_EAY_RELEASE="${{ github.workspace }}/openssl/lib/VC/x64/MT/libcrypto_static.lib" `
56+
-DSSL_EAY_DEBUG="${{ github.workspace }}/openssl/lib/VC/x64/MTd/libssl_static.lib" `
57+
-DSSL_EAY_RELEASE="${{ github.workspace }}/openssl/lib/VC/x64/MT/libssl_static.lib"
58+
59+
- name: Build
60+
shell: pwsh
61+
run: |
62+
cmake --build "${{ github.workspace }}/out/build/x64-Debug" --parallel
63+
64+
- name: Upload artifacts
65+
if: always()
66+
uses: actions/upload-artifact@v4
67+
with:
68+
name: windows-build-${{ github.run_number }}
69+
path: |
70+
out/build/x64-Debug/**
71+
**/*.log
72+
if-no-files-found: warn

0 commit comments

Comments
 (0)