aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/rust-openssl.yml
blob: cec2de0e7b566ca4b317828beb3575800c63e634 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 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 --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
          patch -p1 < ../.github/rust-openssl.patch
          export OPENSSL_DIR=${HOME}/opt LD_LIBRARY_PATH=${HOME}/opt/lib
          cargo test --verbose