diff options
| author | Joshua Sing <joshua@hypera.dev> | 2023-11-09 13:16:51 +1100 |
|---|---|---|
| committer | Brent Cook <busterb@gmail.com> | 2024-03-03 09:12:20 -0600 |
| commit | bd0ed2b48b132d717138598026652a407e0d28dc (patch) | |
| tree | 578f8714f22bbd15594fcbddd3a1868f1308d7c5 /.github/workflows/rust-openssl.yml | |
| parent | 8259d09d1bca390f656912532143d9d3e68c1e39 (diff) | |
| download | portable-bd0ed2b48b132d717138598026652a407e0d28dc.tar.gz portable-bd0ed2b48b132d717138598026652a407e0d28dc.tar.bz2 portable-bd0ed2b48b132d717138598026652a407e0d28dc.zip | |
ci: improve rust-openssl workflow
Diffstat (limited to '.github/workflows/rust-openssl.yml')
| -rw-r--r-- | .github/workflows/rust-openssl.yml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/rust-openssl.yml b/.github/workflows/rust-openssl.yml new file mode 100644 index 0000000..93256ec --- /dev/null +++ b/.github/workflows/rust-openssl.yml | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | # GitHub Actions workflow to run rust-openssl regress tests. | ||
| 2 | name: "rust-openssl" | ||
| 3 | |||
| 4 | on: | ||
| 5 | workflow_dispatch: | ||
| 6 | schedule: | ||
| 7 | - cron: "0 0 * * *" # At 00:00 daily. | ||
| 8 | |||
| 9 | jobs: | ||
| 10 | test: | ||
| 11 | name: "Test" | ||
| 12 | runs-on: "ubuntu-latest" | ||
| 13 | permissions: | ||
| 14 | contents: read | ||
| 15 | steps: | ||
| 16 | - name: "Checkout repository" | ||
| 17 | uses: actions/checkout@v4 | ||
| 18 | |||
| 19 | - name: "Build LibreSSL" | ||
| 20 | run: | | ||
| 21 | ./autogen.sh | ||
| 22 | ./configure | ||
| 23 | make dist | ||
| 24 | tar zxvf libressl-*.tar.gz | ||
| 25 | rm libressl-*.tar.gz | ||
| 26 | cd libressl-* | ||
| 27 | ./configure --prefix="${HOME}/opt" | ||
| 28 | make all install | ||
| 29 | |||
| 30 | - name: "Clone rust-openssl" | ||
| 31 | run: | | ||
| 32 | git clone https://github.com/sfackler/rust-openssl.git | ||
| 33 | |||
| 34 | - name: "Run rust-openssl tests" | ||
| 35 | run: | | ||
| 36 | cd rust-openssl | ||
| 37 | OPENSSL_DIR=${HOME}/opt | ||
| 38 | LD_LIBRARY_PATH=${HOME}/opt/lib | ||
| 39 | patch -p1 < ../.github/rust-openssl.patch | ||
| 40 | cargo test | ||
