Skip to content

Commit 5808281

Browse files
test: adding prerun to cargo.toml, changing rust toolchain action
1 parent def3306 commit 5808281

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/testing.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,10 @@ jobs:
6060
# git-scanning tests need entire git history to work
6161
fetch-depth: 0
6262
- name: Install ${{ matrix.rust }}-${{ matrix.target }} toolchain
63-
uses: actions-rs/toolchain@v1
63+
uses: dtolnay/rust-toolchain@master
6464
with:
65-
profile: minimal
6665
toolchain: ${{ matrix.rust }}
67-
target: ${{ matrix.target }}
68-
override: true
69-
- run: sudo apt install -y libssl-dev
70-
if: matrix.os == 'ubuntu-latest'
66+
targets: ${{ matrix.target }}
7167
- name: Test
7268
uses: actions-rs/cargo@v1
7369
with:

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,9 @@ codegen-units = 1
5656

5757
[package.metadata.cross.target.x86_64-unknown-linux-musl]
5858
dockerfile = "Dockerfile.lambda"
59+
60+
[target.x86_64-unknown-linux-musl]
61+
pre-build = [
62+
"dpkg --add-architecture $CROSS_DEB_ARCH",
63+
"apt-get update && apt-get --assume-yes install libssl-dev:$CROSS_DEB_ARCH"
64+
]

0 commit comments

Comments
 (0)