Skip to content

Updated signatures to latest version #2

Updated signatures to latest version

Updated signatures to latest version #2

Workflow file for this run

name: Build release
on:
push:
tags:
- "**"
pull_request:
branches: [ "main" ]
workflow_dispatch:
inputs:
tag:
description: "Tag to build"
required: true
env:
BUILD_TYPE: Release
jobs:
build-x86:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Get Tag Name
shell: bash
run: |
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
else
echo "TAG_NAME=${{ github.head_ref }}" >> $GITHUB_ENV
fi
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -G "Visual Studio 17 2022" -A Win32 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DVERSION_MYSIMS_ORIGINAL=1
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}}
- name: Prepare Artifact
run: |
mkdir -p ${{ github.workspace }}/artifact/mods/basemod
cp -r ${{ github.workspace }}/basemod/* ${{ github.workspace }}/artifact/mods/basemod/
cp ${{ github.workspace }}/build/Release/dsound.dll ${{ github.workspace }}/artifact/
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: mysims-windows-x86-${{ env.TAG_NAME }}
path: ${{ github.workspace }}/artifact/
build-x64:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Get Tag Name
shell: bash
run: |
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
else
echo "TAG_NAME=${{ github.head_ref }}" >> $GITHUB_ENV
fi
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DVERSION_MYSIMS_COZYBUNDLE=1
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}}
- name: Prepare Artifact
run: |
mkdir -p ${{ github.workspace }}/artifact/mods/basemod
cp -r ${{ github.workspace }}/basemod/* ${{ github.workspace }}/artifact/mods/basemod/
cp ${{ github.workspace }}/build/Release/WSOCK32.dll ${{ github.workspace }}/artifact/
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: mysims-cozybundle-windows-x64-${{ env.TAG_NAME }}
path: ${{ github.workspace }}/artifact/
build-kingdom:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Get Tag Name
shell: bash
run: |
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
else
echo "TAG_NAME=${{ github.head_ref }}" >> $GITHUB_ENV
fi
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DVERSION_MYSIMSKINGDOM_COZYBUNDLE=1
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}}
- name: Prepare Artifact
run: |
mkdir -p ${{ github.workspace }}/artifact/mods/basemod
cp -r ${{ github.workspace }}/basemod/* ${{ github.workspace }}/artifact/mods/basemod/
cp ${{ github.workspace }}/build/Release/WSOCK32.dll ${{ github.workspace }}/artifact/
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: mysims-kingdom-windows-x64-${{ env.TAG_NAME }}
path: ${{ github.workspace }}/artifact/