fix artifact names #108
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
on: [push, pull_request] | |
name: SMV | |
jobs: | |
build-rpm: | |
name: Build RPM | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
container: | |
- "fedora:39" | |
container: ${{ matrix.container }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: General update | |
run: dnf update -y --refresh | |
- name: Install prerequisites | |
run: dnf install -y git gcc g++ rpmdevtools make | |
- run: dnf install -y cmake gd-devel freeglut-devel glui-devel bash lua-filesystem lua lua-devel gd freeglut glui libXmu-devel glew-devel | |
- name: Build RPM | |
run: | | |
cd smv | |
bash ./buildrpm.sh | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: SMV-RPMs | |
path: | | |
dist/*.rpm | |
build_windows_msvc: | |
name: build windows-2022 msvc | |
runs-on: windows-2022 | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Clone smv repo | |
uses: actions/checkout@v4 | |
with: | |
repository: firemodels/smv | |
path: smv/build | |
ref: 24bb184dacf75626399537772460477597d2443a | |
- name: Clone bot repo | |
uses: actions/checkout@v4 | |
with: | |
repository: firemodels/bot | |
path: smv/bot | |
ref: 2cafc15b8a2797df0ff8fe3f64ab44c1719b5db5 | |
- name: build smokeview | |
working-directory: ${{github.workspace}}/smv/build | |
shell: cmd | |
run: | | |
cmake --version | |
cd smv | |
cmake -B ${{github.workspace}}\cbuild -DCMAKE_BUILD_TYPE=Release -DLUA=ON -DLUA_BUILD_BINARY=ON -DLUA_UTIL_LIBS=ON -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_TOOLCHAIN_FILE=%VCPKG_INSTALLATION_ROOT%/scripts/buildsystems/vcpkg.cmake | |
cmake --build ${{github.workspace}}\cbuild -j --config Release | |
- name: build installer | |
working-directory: ${{github.workspace}}/smv/build | |
shell: cmd | |
run: | | |
echo %PATH% | |
set PATH=%PATH%;C:\Program Files (x86)\WiX Toolset v3.11\bin | |
echo %PATH% | |
candle --version | |
cmake --install ${{github.workspace}}\cbuild --config Release --prefix dist | |
mkdir dist\config | |
cp ..\bot\Bundlebot\smv\for_bundle\smokeview.ini dist\config\smokeview.ini | |
cp ..\bot\Bundlebot\smv\for_bundle\objects.svo dist\config\objects.svo | |
cp ..\lua.cmd lua.cmd | |
cp ..\smvlua.cmd smvlua.cmd | |
candle "..\SMVLuaInstaller.wxs" | |
light "SMVLuaInstaller.wixobj" | |
- name: Download test data | |
working-directory: ${{github.workspace}}/smv/build/Tests | |
shell: pwsh | |
run: .\get_test_data.ps1 | |
- name: Test | |
shell: bash | |
working-directory: ${{github.workspace}}/cbuild | |
run: | | |
ctest -j10 -C Release --output-on-failure | |
- name: Archive installer | |
uses: actions/upload-artifact@v4 | |
with: | |
name: SMV-MSIs | |
path: smv/build/SMVLuaInstaller.msi |