-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (42 loc) · 1.55 KB
/
Copy pathbuild.yml
File metadata and controls
53 lines (42 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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/plugins" -Force
Copy-Item "target/i686-pc-windows-msvc/release/omsi2komsi.dll" -Destination "$staging/plugins/"
Copy-Item "target/i686-pc-windows-msvc/release/examples/omsilogger.dll" -Destination "$staging/plugins/"
Copy-Item "omsi2komsi.opl" -Destination "$staging/plugins"
Copy-Item "omsilogger.opl" -Destination "$staging/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/*