Skip to content

macOS dylib

macOS dylib #38

Workflow file for this run

name: Build FlatBuffers
on:
workflow_dispatch:
inputs:
version:
description: Version Overwrite
required: false
push:
paths:
- '**.fbs'
tags:
- "v*"
pull_request:
env:
VERSION: ${{ github.event.inputs.version || (startsWith(github.ref, 'refs/tags/') && github.ref || '') }}
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
language: [ dart, go, ts, java, kotlin, swift ]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Install Flatbuffers
run: make flatbuffers_deps
- name: Build
run: make flatbuffers_${{ matrix.language }}
- name: Compress
run: tar -czvf output.tar.gz -C output/flatbuffers/${{ matrix.language }} .
- if: ${{ env.VERSION!='' }}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: flatbuffers_librsa_bridge_${{ matrix.language }}_$tag.tar.gz
file: output.tar.gz
tag: ${{ env.VERSION }}
overwrite: true
- if: ${{ env.VERSION=='' }}
uses: actions/upload-artifact@v3
with:
name: flatbuffers_librsa_bridge_${{ matrix.language }}
path: output.tar.gz