Skip to content

Commit ef5cf9e

Browse files
committed
ci: fix
1 parent 4d34a67 commit ef5cf9e

File tree

6 files changed

+32
-19
lines changed

6 files changed

+32
-19
lines changed

.github/scripts/cargo_build.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ function BuildProject {
3131
}
3232
Get-ChildItem ..\..
3333

34+
# Check binaries
35+
Get-ChildItem -Recurse target\x86_64-pc-windows-msvc\$BuildType
36+
3437
# Check dynamic links
3538
$output = & "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\dumpbin.exe" /dependents target\x86_64-pc-windows-msvc\$BuildType\cosmian.exe | Select-String "libcrypto"
3639
if ($output) {

.github/scripts/cargo_build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -ex
66
# export TARGET=x86_64-unknown-linux-gnu
77
# export DEBUG_OR_RELEASE=debug
88
# export OPENSSL_DIR=/usr/local/openssl
9-
# export SKIP_SERVICES_TESTS="--skip test_mysql --skip test_pgsql --skip test_redis --skip google_cse --skip test_all_authentications"
9+
# export SKIP_SERVICES_TESTS="--skip test_encrypt --skip test_create"
1010

1111
ROOT_FOLDER=$(pwd)
1212

.github/workflows/build_all.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ jobs:
2121
archive-name: rhel9
2222
target: x86_64-unknown-linux-gnu
2323
debug_or_release: ${{ inputs.debug_or_release }}
24-
artifacts: |
25-
/usr/local/openssl/lib64/ossl-modules/legacy.so
2624

2725
generic-linux:
2826
strategy:
@@ -32,14 +30,21 @@ jobs:
3230
- distribution: ubuntu-20.04
3331
archive-name: ubuntu_20_04
3432
target: x86_64-unknown-linux-gnu
33+
prerequisites: |
34+
sudo apt install librust-atk-sys-dev librust-gdk-sys-dev libssl-dev pkg-config
3535
3636
- distribution: ubuntu-22.04
3737
archive-name: ubuntu_22_04
3838
target: x86_64-unknown-linux-gnu
39+
prerequisites: |
40+
sudo apt install librust-atk-sys-dev librust-gdk-sys-dev libssl-dev pkg-config
3941
4042
- distribution: ubuntu-24.04
4143
archive-name: ubuntu_24_04
4244
target: x86_64-unknown-linux-gnu
45+
prerequisites: |
46+
sudo apt install libgtk-3-dev libglib2.0-dev libssl-dev pkg-config
47+
4348
name: ${{ matrix.distribution }}
4449
uses: ./.github/workflows/build_generic.yml
4550
secrets: inherit
@@ -49,7 +54,8 @@ jobs:
4954
archive-name: ${{ matrix.archive-name }}
5055
target: ${{ matrix.target }}
5156
debug_or_release: ${{ inputs.debug_or_release }}
52-
skip_services_tests: --skip test_mysql --skip test_postgresql --skip test_redis --skip google_cse
57+
skip_services_tests: --skip test_encrypt --skip test_create
58+
prerequisites: ${{ matrix.prerequisites }}
5359

5460
generic-macos:
5561
strategy:
@@ -72,10 +78,9 @@ jobs:
7278
archive-name: ${{ matrix.archive-name }}
7379
target: ${{ matrix.target }}
7480
debug_or_release: ${{ inputs.debug_or_release }}
75-
skip_services_tests: --skip test_mysql --skip test_postgresql --skip test_redis --skip google_cse
81+
skip_services_tests: --skip test_encrypt --skip test_create
7682

7783
windows-2022:
78-
if: inputs.debug_or_release == 'release'
7984
uses: ./.github/workflows/build_windows.yml
8085
with:
8186
toolchain: ${{ inputs.toolchain }}

.github/workflows/build_generic.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ on:
2828
skip_services_tests:
2929
required: false
3030
type: string
31+
prerequisites:
32+
required: false
33+
type: string
3134

3235
env:
3336
OPENSSL_DIR: /usr/local/openssl
@@ -53,6 +56,10 @@ jobs:
5356
toolchain: ${{ inputs.toolchain }}
5457
components: rustfmt, clippy
5558

59+
- name: Klask prerequisites
60+
if: ${{ inputs.prerequisites }}
61+
run: ${{ inputs.prerequisites }}
62+
5663
- name: Local OpenSSL FIPS Install
5764
run: |
5865
sudo mkdir -p ${{ env.OPENSSL_DIR }}
@@ -107,8 +114,8 @@ jobs:
107114
# The current path should be /home/runner/work/cli/cli
108115
pwd
109116
find . -type f
110-
chmod u+x ./cosmian
111-
chmod u+x ./cosmian_gui
117+
chmod u+x ./${{ inputs.debug_or_release }}/cosmian
118+
chmod u+x ./${{ inputs.debug_or_release }}/cosmian_gui
112119
113120
./cosmian -V
114121
./cosmian_gui -V
@@ -121,8 +128,8 @@ jobs:
121128
pwd
122129
ls -lah
123130
find . -type f
124-
chmod u+x ./cosmian
125-
chmod u+x ./cosmian_gui
131+
chmod u+x ./${{ inputs.debug_or_release }}/cosmian
132+
chmod u+x ./${{ inputs.debug_or_release }}/cosmian_gui
126133
127134
./cosmian -V
128135
./cosmian_gui -V

.github/workflows/build_rhel9.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ jobs:
6969
- 6379:6379
7070

7171
name: ${{ inputs.archive-name }}
72-
if: inputs.debug_or_release == 'release'
7372
runs-on: ubuntu-22.04
7473
container:
7574
image: redhat/ubi9
@@ -128,7 +127,6 @@ jobs:
128127

129128
TARGET: ${{ inputs.target }}
130129
DEBUG_OR_RELEASE: ${{ inputs.debug_or_release }}
131-
KMS_TEST_DB: ${{ inputs.database }}
132130
FEATURES: ${{ inputs.features }}
133131
run: |
134132
bash .github/scripts/cargo_build.sh
@@ -138,22 +136,18 @@ jobs:
138136
find target/ -type f -size ++100M -delete
139137
140138
- name: Upload KMS for RHEL 9
141-
if: inputs.database == 'redis-findex'
142139
uses: actions/upload-artifact@v3
143140
with:
144141
name: ${{ inputs.archive-name }}-${{ inputs.debug_or_release }}
145142
path: |
146-
target/${{ inputs.target }}/${{ inputs.debug_or_release }}/ckms
147-
target/${{ inputs.target }}/${{ inputs.debug_or_release }}/cosmian_kms_server
148-
target/${{ inputs.target }}/${{ inputs.debug_or_release }}/libckms_pkcs11.*
149-
target/${{ inputs.target }}/generate-rpm/cosmian_kms_server-*
150-
target/${{ inputs.target }}/generate-rpm/cosmian_kms_cli-*
143+
target/${{ inputs.target }}/${{ inputs.debug_or_release }}/cosmian
144+
target/${{ inputs.target }}/${{ inputs.debug_or_release }}/cosmian_gui
145+
target/${{ inputs.target }}/generate-rpm/cosmian_*
151146
${{ inputs.artifacts }}
152147
retention-days: 1
153148
if-no-files-found: error
154149

155150
kms-test:
156-
if: inputs.database == 'redis-findex'
157151
needs: rhel9-tests
158152
name: Clean env test ${{ inputs.archive-name }}
159153
runs-on: ubuntu-22.04

.github/workflows/clippy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
sudo chown -R $USER:$USER /usr/local
3030
bash .github/scripts/local_ossl_instl.sh ${{ env.OPENSSL_DIR }}
3131
32+
- name: Install Klask prerequisites
33+
run: |
34+
sudo apt install librust-atk-sys-dev librust-gdk-sys-dev libssl-dev pkg-config
35+
3236
- uses: dtolnay/rust-toolchain@master
3337
with:
3438
toolchain: ${{ inputs.toolchain }}

0 commit comments

Comments
 (0)