Skip to content

Add FATFS build test workflow #2

Add FATFS build test workflow

Add FATFS build test workflow #2

Workflow file for this run

name: FATFS Build Test
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
WOLFSSL_REF: v5.7.0-stable
jobs:
build_wolfssl:
name: Build wolfssl
runs-on: ubuntu-latest
timeout-minutes: 4
steps:
- name: Checking cache for wolfssl
uses: actions/cache@v4
id: cache-wolfssl
with:
path: build-dir/
key: wolfssh-fatfs-check-wolfssl-${{ env.WOLFSSL_REF }}
lookup-only: true
- name: Checkout, build, and install wolfssl
if: steps.cache-wolfssl.outputs.cache-hit != 'true'
uses: wolfSSL/actions-build-autotools-project@v1
with:
repository: wolfssl/wolfssl
ref: ${{ env.WOLFSSL_REF }}
path: wolfssl
configure: --enable-wolfssh --enable-cryptonly
check: false
install: true
build_wolfssh:
name: Build wolfssh with FATFS
runs-on: ubuntu-latest
timeout-minutes: 4
needs: build_wolfssl
steps:
- name: Checking cache for wolfssl
uses: actions/cache@v4
with:
path: build-dir/
key: wolfssh-fatfs-check-wolfssl-${{ env.WOLFSSL_REF }}
fail-on-cache-miss: true
- name: Apply FATFS patch
run: |
sed -i 's/#define WRENAME(fs,fd,o,n) f_rename((o),(n))/#define WRENAME(fs,o,n) f_rename((o),(n))/' wolfssh/port.h
- name: Checkout, build, and test wolfssh
uses: wolfSSL/actions-build-autotools-project@v1
with:
repository: wolfssl/wolfssh
path: wolfssh
configure: --enable-sftp CPPFLAGS="-DWOLFSSH_FATFS -I${{ github.workspace }}/build-dir/include" LDFLAGS="-L${{ github.workspace }}/build-dir/lib"
check: true