Skip to content

feat#: add workflow_dispatch option in workflow triggers #2

feat#: add workflow_dispatch option in workflow triggers

feat#: add workflow_dispatch option in workflow triggers #2

Workflow file for this run

name: "YDMS Build"
on:
push:
workflow_dispatch:
jobs:
build-linux:
strategy:
matrix:
osver: [ubuntu-latest, ubuntu-24.04-arm]
runs-on: ${{ matrix.osver }}
steps:
- uses: actions/checkout@v4
- name: Set dist name
run: |
if ${{ matrix.osver == 'ubuntu-24.04-arm' }}; then
echo "distname=crunch-linux-arm" >> "$GITHUB_ENV"
else
echo "distname=crunch-linux" >> "$GITHUB_ENV"
fi
- name: Create build dirs
run: |
mkdir build
cd build
echo "builddir=$(pwd)" >> "$GITHUB_ENV"
- name: Build crunch Linux
working-directory: ${{ env.builddir }}
run: |
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j4
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ env.distname }}
path: ${{ env.builddir }}/**/*.so
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup msbuild
uses: microsoft/setup-msbuild@v2
- name: Build solution
run: |
msbuild -target:build -property:Configuration=Release_DLL -property:Platform=x64 -m crn.2010.sln
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: crunch-windows
path: lib/**/*.dll