diff --git a/.github/workflows/rust-openssl.yml b/.github/workflows/rust-openssl.yml new file mode 100644 index 0000000000..93256ec30f --- /dev/null +++ b/.github/workflows/rust-openssl.yml @@ -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 diff --git a/.github/workflows/rust_regress.yml b/.github/workflows/rust_regress.yml deleted file mode 100644 index ef2d80e139..0000000000 --- a/.github/workflows/rust_regress.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: rust regress tests - -on: - schedule: - - cron: "0 0 * * *" - -jobs: - rust-openssl: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@main - - name: Install apt dependencies - run: | - sudo apt-get update - sudo apt-get install -y cargo - - 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: run rust-openssl tests - run: | - git clone https://github.com/sfackler/rust-openssl.git - cd rust-openssl - export OPENSSL_DIR=${HOME}/opt - export LD_LIBRARY_PATH=${HOME}/opt/lib - patch -p1 < ../.github/rust-openssl.patch - cargo test