Skip to content

feat: add TLS hostname verification skip option #348

feat: add TLS hostname verification skip option

feat: add TLS hostname verification skip option #348

name: Package FFI Engine (Linux)
on:
pull_request:
branches: [main]
paths:
- "flipt-engine-ffi/**"
- "flipt-evaluation/**"
push:
tags: ["flipt-engine-ffi-v**"]
permissions:
contents: write
jobs:
build:
strategy:
fail-fast: false
matrix:
platform:
- name: Linux-x86_64
target: x86_64-unknown-linux-musl
os: ubuntu-22.04
- name: Linux-aarch64
target: aarch64-unknown-linux-musl
os: ubuntu-22.04-arm
runs-on: ${{ matrix.platform.os }}
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: |
rustup update nightly
- name: Install musl-gcc
run: |
sudo apt-get update
sudo apt-get install -y build-essential musl-dev musl-tools
- name: Build
run: |
./flipt-engine-ffi/build.sh ${{ matrix.platform.name }}
- name: Package
run: |
tar -czvf flipt-engine-ffi-${{ matrix.platform.name }}.tar.gz \
target/${{ matrix.platform.target }}/release/libfliptengine.* \
|| true
- name: Upload Artifact (Pull Request)
uses: actions/upload-artifact@v4
if: github.event_name == 'pull_request'
with:
name: flipt-engine-ffi-${{ matrix.platform.name }}.tar.gz
path: flipt-engine-ffi-${{ matrix.platform.name }}.tar.gz
retention-days: 1
- name: Upload Release Assets (Tag)
uses: softprops/[email protected]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/flipt-engine-ffi-v')
with:
tag_name: ${{ github.ref_name }}
files: flipt-engine-ffi-${{ matrix.platform.name }}.tar.gz