Skip to content

bugfix build v2.3.3

bugfix build v2.3.3 #9

Workflow file for this run

name: Rust Build Win32
on:
push:
tags:
- '*'
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: i686-pc-windows-msvc
- name: Build
run: |
cargo build --release --target i686-pc-windows-msvc
cargo build --release --target i686-pc-windows-msvc --example omsilogger
- name: Prepare Release Artifacts
shell: pwsh
run: |
$version = "${{ github.ref_name }}".TrimStart("v")
if ("${{ github.ref_type }}" -ne "tag") { $version = "dev" }
$zipName = "Omsi2Komsi-$version.zip"
$staging = "staging"
New-Item -ItemType Directory -Path "$staging/OMSI 2/plugins" -Force
Copy-Item "target/i686-pc-windows-msvc/release/omsi2komsi.dll" -Destination "$staging/OMSI 2/plugins/"
Copy-Item "target/i686-pc-windows-msvc/release/examples/omsilogger.dll" -Destination "$staging/OMSI 2/plugins/"
Copy-Item "omsi2komsi.opl" -Destination "$staging/OMSI 2/plugins"
Copy-Item "omsilogger.opl" -Destination "$staging/OMSI 2/plugins"
Copy-Item "README.md" -Destination "$staging/"
Copy-Item "LICENSE" -Destination "$staging/"
Copy-Item "liesmich.txt" -Destination "$staging/"
echo "VERSION=$version" >> $env:GITHUB_ENV
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: Omsi2Komsi-${{ env.VERSION }}
path: staging/*