Edit

kc3-lang/libressl/.github/workflows/rust-openssl.yml

Branch :

  • Browse

    Commit

  • Author : Theo Buehler
    Date : 2023-11-12 00:02:17
    Hash : 291c0d96
    Message : Replace rust-openssl patch with an ed script It is annoying to update this patch all the time. An easy ed script does the trick just as well.

  • .github/workflows/rust-openssl.yml
  • # 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
              # instead of erroring use the last supported version
              ed -s openssl-sys/build/main.rs <<-EOF
              /_ => version_error/-1
              .t.
              s/(.*=/_ =
              +1d
              w
              q
              EOF
              export OPENSSL_DIR=${HOME}/opt LD_LIBRARY_PATH=${HOME}/opt/lib
              cargo test --verbose