Skip to content

Commit

Permalink
ci: improve rust-openssl workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuasing committed Nov 9, 2023
1 parent 0ff62e0 commit d1ddc0f
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 33 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/rust-openssl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# GitHub Actions workflow to run rust-openssl regress tests.
name: "rust-openssl"

on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *" # At 00:00 daily.

jobs:
test:
name: "Test"
runs-on: "ubuntu-latest"
permissions:
contents: read
steps:
- name: "Checkout repository"
uses: actions/checkout@v4

- name: "Build LibreSSL"
run: |
./autogen.sh
./configure
make dist
tar zxvf libressl-*.tar.gz
rm libressl-*.tar.gz
cd libressl-*
./configure --prefix="${HOME}/opt"
make all install
- name: "Clone rust-openssl"
run: |
git clone https://github.com/sfackler/rust-openssl.git
- name: "Run rust-openssl tests"
run: |
cd rust-openssl
OPENSSL_DIR=${HOME}/opt
LD_LIBRARY_PATH=${HOME}/opt/lib
patch -p1 < ../.github/rust-openssl.patch
cargo test
33 changes: 0 additions & 33 deletions .github/workflows/rust_regress.yml

This file was deleted.

0 comments on commit d1ddc0f

Please sign in to comment.