|
6 | 6 | pull_request: |
7 | 7 | branches: [ '*' ] |
8 | 8 |
|
| 9 | +concurrency: |
| 10 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 11 | + cancel-in-progress: true |
| 12 | + |
9 | 13 | jobs: |
10 | | - build: |
| 14 | + build_wolfssl: |
| 15 | + strategy: |
| 16 | + fail-fast: false |
| 17 | + matrix: |
| 18 | + os: [ ubuntu-latest ] |
| 19 | + wolfssl: [ v5.7.2-stable ] |
| 20 | + name: Build wolfssl |
| 21 | + runs-on: ${{ matrix.os }} |
| 22 | + timeout-minutes: 4 |
| 23 | + steps: |
| 24 | + - name: Checking cache for wolfssl |
| 25 | + uses: actions/cache@v4 |
| 26 | + id: cache-wolfssl |
| 27 | + with: |
| 28 | + path: build-dir/ |
| 29 | + key: wolfssh-sshd-wolfssl-${{ matrix.wolfssl }}-${{ matrix.os }} |
| 30 | + lookup-only: true |
11 | 31 |
|
12 | | - runs-on: ubuntu-latest |
| 32 | + - name: Checkout, build, and install wolfssl |
| 33 | + if: steps.cache-wolfssl.outputs.cache-hit != 'true' |
| 34 | + uses: wolfSSL/actions-build-autotools-project@v1 |
| 35 | + with: |
| 36 | + repository: wolfssl/wolfssl |
| 37 | + ref: ${{ matrix.wolfssl }} |
| 38 | + path: wolfssl |
| 39 | + configure: --enable-all |
| 40 | + check: false |
| 41 | + install: true |
13 | 42 |
|
| 43 | + build_wolfssh: |
| 44 | + strategy: |
| 45 | + fail-fast: false |
| 46 | + matrix: |
| 47 | + os: [ ubuntu-latest ] |
| 48 | + wolfssl: [ v5.7.2-stable ] |
| 49 | + name: Build and test wolfsshd |
| 50 | + runs-on: ${{ matrix.os }} |
| 51 | + timeout-minutes: 10 |
| 52 | + needs: build_wolfssl |
14 | 53 | steps: |
15 | | - - uses: actions/checkout@v2 |
16 | | - with: |
17 | | - repository: wolfSSL/wolfssl.git |
18 | | - ref: master |
19 | | - - name: build wolfSSL |
20 | | - run: ./autogen.sh && ./configure --enable-all --prefix=/usr && make && sudo make install |
21 | | - - uses: actions/checkout@v2 |
22 | | - - name: autogen |
23 | | - run: ./autogen.sh |
24 | | - - name: configure |
25 | | - run: ./configure --enable-all CPPFLAGS="-DWOLFSSH_NO_FPKI -DWOLFSSH_NO_SFTP_TIMEOUT -DWOLFSSH_MAX_SFTP_RW=4000000" |
26 | | - - name: make |
27 | | - run: make |
28 | | - - name: make check |
29 | | - run: make check |
30 | | - - name: run wolfSSHd tests |
31 | | - run: sudo ./run_all_sshd_tests.sh root |
32 | | - working-directory: ./apps/wolfsshd/test |
| 54 | + - name: Checking cache for wolfssl |
| 55 | + uses: actions/cache@v4 |
| 56 | + with: |
| 57 | + path: build-dir/ |
| 58 | + key: wolfssh-sshd-wolfssl-${{ matrix.wolfssl }}-${{ matrix.os }} |
| 59 | + fail-on-cache-miss: true |
| 60 | + |
| 61 | + - name: Checkout and build wolfsshd |
| 62 | + uses: wolfSSL/actions-build-autotools-project@v1 |
| 63 | + with: |
| 64 | + repository: wolfssl/wolfssh |
| 65 | + path: wolfssh |
| 66 | + configure: --enable-debug --enable-all LDFLAGS="-L${{ github.workspace }}/build-dir/lib" CPPFLAGS="-I${{ github.workspace }}/build-dir/include -DWOLFSSH_NO_FPKI -DWOLFSSH_NO_SFTP_TIMEOUT -DWOLFSSH_MAX_SFTP_RW=4000000" |
| 67 | + check: true |
| 68 | + |
| 69 | + - name: Run wolfSSHd tests |
| 70 | + working-directory: wolfssh/apps/wolfsshd/test |
| 71 | + run: sudo ./run_all_sshd_tests.sh root |
0 commit comments