diff options
| author | Joshua Sing <joshua@hypera.dev> | 2023-11-09 13:16:51 +1100 |
|---|---|---|
| committer | Joshua Sing <joshua@hypera.dev> | 2023-11-09 13:16:51 +1100 |
| commit | d1ddc0fcb1bc5af4900244fecb247c5a6a8cbb3a (patch) | |
| tree | bd1f8bb9444b5dff0acb431be4ad04725008d0d2 /.github/workflows | |
| parent | 0ff62e0a97d73c250849b86ccda1c2dafe10c7f4 (diff) | |
| download | portable-d1ddc0fcb1bc5af4900244fecb247c5a6a8cbb3a.tar.gz portable-d1ddc0fcb1bc5af4900244fecb247c5a6a8cbb3a.tar.bz2 portable-d1ddc0fcb1bc5af4900244fecb247c5a6a8cbb3a.zip | |
ci: improve rust-openssl workflow
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/rust-openssl.yml | 40 | ||||
| -rw-r--r-- | .github/workflows/rust_regress.yml | 33 |
2 files changed, 40 insertions, 33 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 | ||
diff --git a/.github/workflows/rust_regress.yml b/.github/workflows/rust_regress.yml deleted file mode 100644 index ef2d80e..0000000 --- a/.github/workflows/rust_regress.yml +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | name: rust regress tests | ||
| 2 | |||
| 3 | on: | ||
| 4 | schedule: | ||
| 5 | - cron: "0 0 * * *" | ||
| 6 | |||
| 7 | jobs: | ||
| 8 | rust-openssl: | ||
| 9 | runs-on: ubuntu-latest | ||
| 10 | steps: | ||
| 11 | - uses: actions/checkout@main | ||
| 12 | - name: Install apt dependencies | ||
| 13 | run: | | ||
| 14 | sudo apt-get update | ||
| 15 | sudo apt-get install -y cargo | ||
| 16 | - name: Build LibreSSL | ||
| 17 | run: | | ||
| 18 | ./autogen.sh | ||
| 19 | ./configure | ||
| 20 | make dist | ||
| 21 | tar zxvf libressl-*.tar.gz | ||
| 22 | rm libressl-*.tar.gz | ||
| 23 | cd libressl-* | ||
| 24 | ./configure --prefix="${HOME}/opt" | ||
| 25 | make all install | ||
| 26 | - name: run rust-openssl tests | ||
| 27 | run: | | ||
| 28 | git clone https://github.com/sfackler/rust-openssl.git | ||
| 29 | cd rust-openssl | ||
| 30 | export OPENSSL_DIR=${HOME}/opt | ||
| 31 | export LD_LIBRARY_PATH=${HOME}/opt/lib | ||
| 32 | patch -p1 < ../.github/rust-openssl.patch | ||
| 33 | cargo test | ||
