This repository has been archived by the owner on Jun 29, 2024. It is now read-only.
Try fix release build workflow #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Building | |
on: | |
release: | |
types: [ published ] | |
push: | |
jobs: | |
build-ubuntu: | |
name: Build Ubuntu 22.04 | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Install LLVM | |
uses: KyleMayes/install-llvm-action@v1 | |
with: | |
version: "15" | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build | |
- name: Locate binary | |
run: ls ${{github.workspace}}/build/src | |
- name: Save binary in zip | |
uses: TonyBogdanov/[email protected] | |
with: | |
args: zip filc-ubuntu22.04.zip ${{github.workspace}}/build/src/filc | |
# - name: Upload to Release | |
# uses: JasonEtco/[email protected] | |
# with: | |
# args: filc-ubuntu22.04.zip | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
build-macos: | |
name: Build MacOS 12 | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Install LLVM | |
uses: KyleMayes/install-llvm-action@v1 | |
with: | |
version: "15" | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build | |
- name: Locate binary | |
run: ls ${{github.workspace}}/build/src | |
- name: Save binary in zip | |
uses: TonyBogdanov/[email protected] | |
with: | |
args: zip filc-macos12.zip ${{github.workspace}}/build/src/filc | |
# - name: Upload to Release | |
# uses: JasonEtco/[email protected] | |
# with: | |
# args: filc-macos12.zip | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# build-windows: | |
# name: Build Windows 2022 | |
# runs-on: windows-2022 | |
# steps: | |
# - uses: actions/checkout@v3 | |
# | |
# - uses: actions/setup-java@v3 | |
# with: | |
# distribution: 'temurin' | |
# java-version: '17' | |
# | |
# - name: Configure CMake | |
# run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release | |
# - name: Build | |
# run: cmake --build ${{github.workspace}}/build --config Release | |
# | |
# - name: Save binary in zip | |
# uses: montudor/[email protected] | |
# with: | |
# args: zip filc-windows2022.zip ${{github.workspace}}/build/src/Release/filc.exe | |
# - name: Upload to Release | |
# uses: JasonEtco/[email protected] | |
# with: | |
# args: filc-windows2022.zip | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |