-
Notifications
You must be signed in to change notification settings - Fork 11
63 lines (49 loc) · 1.35 KB
/
ship.yml
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
54
55
56
57
58
59
60
61
62
63
name: Rust
on:
push:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
release-win:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2022]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: true
install: mingw-w64-clang-x86_64-clang
- name: Set LIBCLANG_PATH
run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV
- name: Ship
shell: pwsh
run: ./.github/workflows/shipper.ps1
# - name: Compress binaries
# uses: svenstaro/upx-action@v2
# with:
# args: -9
# files: |
# smoothie-rs-artifact/bin/smoothie*.exe
# smoothie-rs-artifact/bin/vapoursynth64/plugins/*.dll
- uses: actions/upload-artifact@v3
with:
name: smoothie-rs-bin-windows
path: ./smoothie-rs/
- name: Generate release tag
id: tag
run: echo "::set-output name=release_tag::Nightly_$(date +"%Y.%m.%d_%H-%M")"
- uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.tag.outputs.release_tag }}
fail_on_unmatched_files: true
files: |
./smoothie-rs-nightly.zip