Skip to content

UPDATE 0.0.1: TEST

UPDATE 0.0.1: TEST #1

Workflow file for this run

name: Build & Release
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
exe: freedom-core-linux-x64
- os: windows-latest
exe: freedom-core-windows-x64.exe
steps:
- uses: actions/checkout@v4
- name: Setup CMake
uses: lukka/get-cmake@v3
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build build --config Release --parallel
- name: Copy Executable
run: |
if [ "${{ matrix.os }}" == "ubuntu-latest" ]; then
cp build/freedom-core ./${{ matrix.exe }}
chmod +x ${{ matrix.exe }}
else
copy build\Release\freedom-core.exe .\${{ matrix.exe }}
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.exe }}
path: ${{ matrix.exe }}
release:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v4
with:
name: freedom-core-linux-x64
path: artifacts
- uses: actions/download-artifact@v4
with:
name: freedom-core-windows-x64.exe
path: artifacts
- name: Upload Executables to Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
name: freedom-core
files: artifacts/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}