Skip to content

Commit 69873f3

Browse files
Start tracking Cargo.lock file
* Update the Nightly run so that it builds without a Cargo.lock file as well. Please refer to https://blog.rust-lang.org/2023/08/29/committing-lockfiles.html for more information. Signed-off-by: Tomás González <tomasagustin.gonzalezorlando@arm.com>
1 parent f85125c commit 69873f3

File tree

3 files changed

+698
-1
lines changed

3 files changed

+698
-1
lines changed

.github/workflows/nightly.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,45 @@ jobs:
2020
- name: Execute cargo udeps
2121
run: cargo +nightly udeps
2222

23+
build:
24+
name: Execute builds with updated dependencies
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: Setup Rust toolchain
29+
uses: actions-rs/toolchain@v1
30+
with:
31+
toolchain: stable
32+
33+
- name: Install SoftHSM
34+
run: |
35+
sudo apt-get update -y -qq &&
36+
sudo apt-get install -y -qq libsofthsm2 &&
37+
mkdir /tmp/tokens
38+
echo "directories.tokendir = /tmp/tokens" > /tmp/softhsm2.conf
39+
40+
- name: Install Rust targets
41+
run: |
42+
rustup target add armv7-unknown-linux-gnueabi &&
43+
rustup target add armv7-unknown-linux-gnueabihf &&
44+
rustup target add arm-unknown-linux-gnueabi &&
45+
rustup target add aarch64-unknown-linux-gnu &&
46+
rustup target add i686-unknown-linux-gnu &&
47+
rustup target add powerpc64-unknown-linux-gnu &&
48+
rustup target add powerpc64le-unknown-linux-gnu &&
49+
rustup target add x86_64-pc-windows-msvc &&
50+
rustup target add x86_64-apple-darwin &&
51+
rustup target add aarch64-apple-darwin &&
52+
rustup target add x86_64-unknown-freebsd
53+
54+
- name: Test script
55+
env:
56+
PKCS11_SOFTHSM2_MODULE: /usr/lib/softhsm/libsofthsm2.so
57+
SOFTHSM2_CONF: /tmp/softhsm2.conf
58+
run: |
59+
rm Cargo.lock
60+
./ci.sh
61+
2362
audit:
2463
name: Check for crates with security vulnerabilities
2564
runs-on: ubuntu-latest

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
*target
22
**/*.rs.bk
3-
*Cargo.lock
43
*.swp
54
*DS_Store
65
*.patch

0 commit comments

Comments
 (0)