mxmd can now process procedual bones #9
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: build | |
on: | |
push: | |
env: | |
BUILD_TYPE: Release | |
SK_VERSION: nover | |
jobs: | |
build-linux: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: GCC 12 & Artifacts | |
CC: gcc-12 | |
CXX: g++-12 | |
artifacts: true | |
- name: Clang 13 & ODR | |
CC: clang-13 | |
CXX: clang++-13 | |
use-odr: true | |
env: | |
CC: ${{matrix.CC}} | |
CXX: ${{matrix.CXX}} | |
ODR_TEST: ${{matrix.odr-test == true}} | |
TOOLSET: ${{matrix.artifacts == true}} | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Configure stuff | |
run: | | |
sudo apt install zstd g++-12 | |
mkdir ${{github.workspace}}/build | |
cd ${{github.workspace}}/build | |
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DODR_TEST=$ODR_TEST -DTOOLSET=$TOOLSET -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/tmp .. | |
echo "SK_VERSION=$(cat toolset/version)" >> $GITHUB_ENV | |
- name: Build | |
working-directory: ${{github.workspace}}/build | |
run: cmake --build . -j 6 | |
- name: Install | |
if: ${{matrix.artifacts == true}} | |
working-directory: ${{github.workspace}}/build | |
run: | | |
cmake --build . --target install | |
cd ../tmp | |
mv ../LICENSE . | |
mv ../toolset/README.md . | |
tar -cvaf ../XenobladeToolset-v${{env.SK_VERSION}}-linux-amd64.tar.xz . | |
- name: Upload Artifacts | |
if: ${{matrix.artifacts == true}} | |
uses: actions/upload-artifact@v2 | |
with: | |
name: XenobladeToolset-linux-amd64 | |
path: ${{github.workspace}}/XenobladeToolset-v${{env.SK_VERSION}}-linux-amd64.tar.xz | |
retention-days: 5 | |
build-widle: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Configure stuff | |
run: | | |
choco install ninja | |
mkdir ${{github.workspace}}/build | |
cd ${{github.workspace}}/build | |
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${{github.workspace}} .. | |
echo "SK_VERSION=$(Get-Content -Path ./toolset/version)" >> $env:GITHUB_ENV | |
env: | |
CC: clang | |
CXX: clang++ | |
- name: Build | |
working-directory: ${{github.workspace}}/build | |
run: cmake --build . -j 6 | |
- name: Install | |
run: | | |
cmake --build build --target install | |
copy LICENSE bin/LICENSE.md | |
copy toolset/README.md bin/README.md | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: XenobladeToolset-v${{env.SK_VERSION}}-win64 | |
path: ${{github.workspace}}/bin | |
retention-days: 5 |