@@ -306,45 +306,6 @@ jobs:
306306 - name : Build for ${{ matrix.target }}
307307 run : cargo build --target ${{ matrix.target }} --all-targets
308308
309- cross-build-fips :
310- name : Cross build from macOS to Linux (FIPS)
311- runs-on : macos-13 # Need an Intel (x86_64) runner for Clang 12.0.0
312- strategy :
313- matrix :
314- include :
315- - target : x86_64-unknown-linux-gnu
316- steps :
317- - uses : actions/checkout@v4
318- with :
319- submodules : ' recursive'
320- - name : Install Rust (rustup)
321- run : rustup update stable --no-self-update && rustup default stable && rustup target add ${{ matrix.target }}
322- shell : bash
323- - name : Install golang
324- uses : actions/setup-go@v5
325- with :
326- go-version : ' >=1.22.0'
327- - name : Install ${{ matrix.target }} toolchain
328- run : brew tap messense/macos-cross-toolchains && brew install ${{ matrix.target }} && brew link x86_64-unknown-linux-gnu
329- - name : Install Clang-12
330- uses : KyleMayes/install-llvm-action@v1
331- with :
332- version : " 12.0.0"
333- directory : ${{ runner.temp }}/llvm
334- - name : Add clang++-12 link
335- working-directory : ${{ runner.temp }}/llvm/bin
336- run : ln -s clang++ clang++-12
337- - name : Set BORING_BSSL_FIPS_COMPILER_EXTERNAL_TOOLCHAIN
338- run : echo "BORING_BSSL_FIPS_COMPILER_EXTERNAL_TOOLCHAIN=$(brew --prefix ${{ matrix.target }})/toolchain" >> $GITHUB_ENV
339- shell : bash
340- - name : Set BORING_BSSL_FIPS_SYSROOT
341- run : echo "BORING_BSSL_FIPS_SYSROOT=$BORING_BSSL_FIPS_COMPILER_EXTERNAL_TOOLCHAIN/${{ matrix.target }}/sysroot" >> $GITHUB_ENV
342- shell : bash
343- - name : Set CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER
344- run : echo "CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=${{ matrix.target }}-gcc" >> $GITHUB_ENV
345- - name : Build for ${{ matrix.target }}
346- run : cargo build --target ${{ matrix.target }} --all-targets --features fips
347-
348309 test-features :
349310 name : Test features
350311 runs-on : ubuntu-latest
0 commit comments