From 5dd416576931cad7bf6cec31163a1d01f8aacdbc Mon Sep 17 00:00:00 2001
From: Moul <moul@moul.re>
Date: Thu, 13 Feb 2025 20:32:28 +0100
Subject: [PATCH] Adapt linux build now depending on libssl-dev. Introduce
 tests job (#45, #46) (clients/rust/gcli-v2s!42)

* Adapt linux build now depending on libssl-dev (#45)

native-tls transitive dependency introduced in !41
which requires libssl-dev package installed
for the build to find ssl components

Switching to non-slim Debian image which comes
with libssl-dev pre-installed

Introduce linux tests job: to run tests (#46)
and prevent similar issue in the future

Update changelog
---
 .gitlab-ci.yml |  9 ++++++++-
 CHANGELOG.md   | 14 ++++++++++----
 2 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 609f2c3..3d5e019 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,12 +2,19 @@
 # https://hub.docker.com/r/library/rust/tags/
 
 stages:
+  - tests
   - build
   - release
 
+tests_linux:
+  stage: tests
+  image: rust:buster
+  script:
+    - cargo test
+
 build_linux:
   stage: build
-  image: rust:slim-buster
+  image: rust:buster
   script:
      # Build the project for Linux
     - cargo build --release
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6aae9b7..58f1d00 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,9 +22,9 @@ List of changelogs ordered from latest to oldest
 - Support for SQLite file database to persist vault data
 - global `-v <NAME>` argument to select a vault Address by name (mutually exclusive with `-a <ADDRESS>` argument)
 - Already mentioned in the "Changed" section above, but it is now possible to add different kind of keys to the vault when doing `vault import`
-  - Default providing _substrate_ URI (or `-S substrate`) : can be a mnemonic or a mini-secret ('0x' prefixed seed) together with optional derivation path; using Sr25519 crypto scheme
-  - `-S seed` : using the 32 character hexadecimal secret seed; using Sr25519 crypto scheme
-  - `-S g1v1` (or `-S cesium`) : allows to input G1v1 `id` and `secret`; using Ed25519 crypto scheme 
+  - Default providing _substrate_ URI (or `-S substrate`): can be a mnemonic or a mini-secret ('0x' prefixed seed) together with optional derivation path; using Sr25519 crypto scheme
+  - `-S seed`: using the 32 character hexadecimal secret seed; using Sr25519 crypto scheme
+  - `-S g1v1` (or `-S cesium`): allows to input G1v1 `id` and `secret`; using Ed25519 crypto scheme
 - Added possibility to `derive` non _g1v1_/_cesium_ Addresses (see `gcli vault derive`)
 - Some commands were added
   - `gcli vault list all` List all \<Base\> SS58 Addresses and their linked derivations in the vault
@@ -49,6 +49,12 @@ List of changelogs ordered from latest to oldest
 ### Removed
 - None
 
+### CI/CD
+- #45, !42:
+  - In linux build job, switch to "non-slim" Debian image which provides `libssl-dev` now required
+  - Introduce linux tests job (#46)
+- !38: Build deb and macos pkgs in parallel
+
 ## [0.3.0] - 2024-10-10
 ### Added
-- Previous version without changelog
\ No newline at end of file
+- Previous version without changelog
-- 
GitLab