blob: 1adb852a4760d6c38370aa9c4ea2e3705ae17fa0 (
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
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
name: CMake
on: [push, pull_request]
env:
BUILD_TYPE: Release
jobs:
debian-bookworm:
runs-on: ubuntu-latest
container:
image: debian:bookworm
strategy:
matrix:
storm_use_bundled_libraries: [ ON, OFF ]
with_libtomcrypt: [ ON, OFF ]
build_shared_libs: [ ON, OFF ]
unicode: [ ON, OFF ]
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: apt-get -y update && apt-get install -y build-essential cmake
- name: Conditionally install libtomcrypt-dev
if: matrix.with_libtomcrypt == 'ON'
run: apt-get install -y libtomcrypt-dev pkg-config
- name: CMake Configuration
run: |
cmake -B build \
-D CMAKE_BUILD_TYPE=Release \
-D STORM_USE_BUNDLED_LIBRARIES=${{ matrix.storm_use_bundled_libraries }} \
-D WITH_LIBTOMCRYPT=${{ matrix.with_libtomcrypt }} \
-D BUILD_SHARED_LIBS=${{ matrix.build_shared_libs }} \
-D STORM_UNICODE=${{ matrix.unicode }}
- name: Build
run: cmake --build build --config Release
fedora-latest:
if: true
runs-on: ubuntu-latest
container:
image: fedora:latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: dnf -y install cmake gcc gcc-c++
- name: Cmake
run: cmake -B build -D CMAKE_BUILD_TYPE=$BUILD_TYPE -D BUILD_SHARED_LIBS=ON
- name: Build
run: cmake --build build --config Release
windows-latest-x64:
if: true
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: TheMrMilchmann/setup-msvc-dev@v3
with:
arch: x64
- name: Cmake
run: cmake -B build -D CMAKE_BUILD_TYPE=$BUILD_TYPE -D BUILD_SHARED_LIBS=ON
- name: Build
run: cmake --build build --config Release
- name: Debug
shell: bash
run: ls -la build
- name: Check PE
shell: bash
working-directory: ./build/Release
run: |
file "stormlib.dll"
file "stormlib.dll" |grep "x86-64"
|