-
Notifications
You must be signed in to change notification settings - Fork 6
56 lines (54 loc) · 1.48 KB
/
main.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
45
46
47
48
49
50
51
52
53
54
55
56
name: Build Bouncy Hsm
on:
workflow_dispatch
jobs:
Build-linux-libs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build PKCS11 lib x64
run: |
cd build_linux
make build64
rm -f *.o
# - name: Instal 32bit tooling
# run: |
# apt-get update -qq
# apt-get install gcc-multilib -q -y
# - name: Build PKCS11 lib x32
# run: |
# cd build_linux
# make build32
# rm -f *.o
- name: Upload linux native artifacts
uses: actions/upload-artifact@v4
with:
name: linux-native-libs
path: |
build_linux/*.so
retention-days: 1
Build-Bouncy-Hsm:
name: Build-Bouncy-Hsm
runs-on: windows-latest
needs: Build-linux-libs
steps:
- uses: actions/checkout@v4
- name: Cache .nuke/temp, ~/.nuget/packages
uses: actions/cache@v4
with:
path: |
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
- uses: actions/download-artifact@v4
with:
name: linux-native-libs
path: build_linux
- name: Run './build.cmd BuildAll'
run: ./build.cmd BuildAll --configuration Release
- uses: actions/upload-artifact@v4
with:
name: Bouncy-Hsm-Artifacts
path: |
artifacts/*.zip
artifacts/*.nupkg