Skip to content

Trigger Github Actions re-run #27

Trigger Github Actions re-run

Trigger Github Actions re-run #27

Workflow file for this run

name: CMake Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
windows:
runs-on: windows-latest
strategy:
matrix:
config:
- {
name: "Windows 32Bit", artifact: "gmcl_gdiscord_win32.dll",
cmakeargs: "-A Win32"
}
- {
name: "Windows 64Bit", artifact: "gmcl_gdiscord_win64.dll",
cmakeargs: "-A x64"
}
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMake
env:
cmakeargs: ${{matrix.config.cmakeargs}}
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE/cpp $cmakeargs
- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --target gdiscord --config MinSizeRel
- name: Upload
uses: actions/upload-artifact@v3
with:
name: ${{matrix.config.artifact}}
path: ${{runner.workspace}}\build\MinSizeRel\${{matrix.config.artifact}}
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Install package
run: |
sudo apt-get update && sudo apt-get -y install gcc-multilib g++-multilib
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE/cpp
- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --target gdiscord
- name: Upload
uses: actions/upload-artifact@v3
with:
name: "gmcl_gdiscord_linux.dll"
path: ${{runner.workspace}}/build/gmcl_gdiscord_linux.dll
linux64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE/cpp -D64BIT=ON
- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --target gdiscord
- name: Upload
uses: actions/upload-artifact@v3
with:
name: "gmcl_gdiscord_linux64.dll"
path: ${{runner.workspace}}/build/gmcl_gdiscord_linux64.dll
mac64:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE/cpp -D64BIT=ON
- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --target gdiscord
- name: Upload
uses: actions/upload-artifact@v3
with:
name: "gmcl_gdiscord_osx64.dll"
path: ${{runner.workspace}}/build/gmcl_gdiscord_linux64.dll