Skip to content

updated header in ffnn.hpp #2

updated header in ffnn.hpp

updated header in ffnn.hpp #2

Workflow file for this run

name: CI
# normal way of pushing
on: [push, pull_request]
# # https://stackoverflow.com/questions/63932728/github-action-release-tag
# # only happens if a tag was pushed e.g: `git push origin v1.0.0`
# on:
# push:
# # Sequence of patterns matched against refs/tags
# tags:
# - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
build:
permissions: write-all
name: ${{ matrix.platform.name }} ${{ matrix.config.name }}
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: false
matrix:
platform:
- { name: Linux Clang, os: ubuntu-latest, font: ./build/calibril.ttf, bin: ./build/flappy-ffnn-ga, zip: ubuntu-exec.zip , zipper: zip, flags: -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ }
config:
- { name: Static, flags: -DBUILD_SHARED_LIBS=FALSE }
steps:
- name: Install Linux Dependencies
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install libxrandr-dev libxcursor-dev libudev-dev libopenal-dev libflac-dev libvorbis-dev libgl1-mesa-dev libegl1-mesa-dev
- name: Checkout
uses: actions/checkout@v3
- name: Display Tag Name
run : echo ${{github.ref_name}}
- name: Configure project
run: cmake -S src -B build -DCMAKE_INSTALL_PREFIX=install ${{matrix.platform.flags}} ${{matrix.config.flags}}
- name: Build ${{matrix.platform.bin}} executable
run: cmake --build build --config Release
- name: Compress ${{matrix.platform.bin}} executable
run: ${{matrix.platform.zipper}} ${{matrix.platform.zip}} ${{matrix.platform.bin}} ${{matrix.platform.font}}
- name: Create github release and upload ${{matrix.platform.zip}}
run: gh release create ${{github.ref_name}} ${{matrix.platform.zip}} --title "${{github.ref_name}}" --notes "Release notes for ${{github.ref_name}}" --draft=false --prerelease=false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Install
# shell: bash
# run: cmake --install build --config Release
build-others:
needs: build
permissions: write-all
name: ${{ matrix.platform.name }} ${{ matrix.config.name }}
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: false
matrix:
platform:
- { name: Windows VS2019, os: windows-2019, font: .\\build\\calibril.ttf, bin: .\\build\\Release\\flappy-ffnn-ga.exe, zip: windows-exec-VS19.zip, zipper: 7z a -tzip, flags: -DBUILD_SHARED_LIBS=FALSE -DCMAKE_BUILD_TYPE=Release }
- { name: Windows VS2022, os: windows-2022, font: .\\build\\calibril.ttf, bin: .\\build\\Release\\flappy-ffnn-ga.exe, zip: windows-exec-VS22.zip, zipper: 7z a -tzip, flags: -DBUILD_SHARED_LIBS=FALSE -DCMAKE_BUILD_TYPE=Release }
- { name: Windows Clang, os: windows-latest, font: .\\build\\calibril.ttf, bin: .\\build\\Release\\flappy-ffnn-ga.exe, zip: windows-exec-clang.zip, zipper: 7z a -tzip, flags: -DBUILD_SHARED_LIBS=FALSE -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ }
- { name: Windows GCC, os: windows-latest, font: .\\build\\calibril.ttf, bin: .\\build\\Release\\flappy-ffnn-ga.exe, zip: windows-exec-gcc.zip, zipper: 7z a -tzip, flags: -DBUILD_SHARED_LIBS=FALSE -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ }
- { name: MacOS XCode, os: macos-latest, font: ./build/calibril.ttf, bin: ./build/flappy-ffnn-ga, zip: mac-exec.zip, zipper: zip, flags: -DBUILD_SHARED_LIBS=FALSE -DCMAKE_BUILD_TYPE=Release }
# - { name: Linux GCC, os: ubuntu-latest, font: ./build/calibril.ttf, bin: ./build/flappy-ffnn-ga, zip: mac-exec.zip, zipper: zip, flags: -DBUILD_SHARED_LIBS=FALSE -DCMAKE_BUILD_TYPE=Release }
config:
- { name: Static, flags: -DBUILD_SHARED_LIBS=FALSE -DCMAKE_BUILD_TYPE=Release }
# - { name: Shared, flags: -DBUILD_SHARED_LIBS=TRUE -DCMAKE_BUILD_TYPE=Release }
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Configure project
run: cmake -S src -B build -DCMAKE_INSTALL_PREFIX=install ${{matrix.platform.flags}} ${{matrix.config.flags}}
- name: Build ${{matrix.platform.bin}} executable
run: cmake --build build --config Release
- name: Compress ${{matrix.platform.bin}} executable
run: ${{matrix.platform.zipper}} ${{matrix.platform.zip}} ${{matrix.platform.bin}} ${{matrix.platform.font}}
- name: Upload ${{matrix.platform.zip}} to release
run: gh release upload ${{github.ref_name}} ${{matrix.platform.zip}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Install
# shell: bash
# run: cmake --install build --config Release