-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (53 loc) · 2.01 KB
/
release.yaml
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
name: release
permissions:
contents: write
on:
release:
types:
- created
jobs:
release:
runs-on: windows-latest
defaults:
run:
shell: powershell
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: ilammy/msvc-dev-cmd@v1
- uses: dtolnay/rust-toolchain@nightly
with:
targets: x86_64-unknown-linux-musl
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- run: ./download_and_build_lua.ps1
- run: cargo build --release
- run: cargo build --release --target x86_64-unknown-linux-musl --bin install
- run: Move-Item build/lua54/lua54.dll ./lua54.dll
- run: python make_dist.py
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: target/release/chaudloader.dll
asset_name: chaudloader.dll
asset_content_type: application/octet-stream
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: dist.zip
asset_name: chaudloader-${{ github.ref_name }}-windows.zip
asset_content_type: application/octet-stream
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: dist.tar.bz2
asset_name: chaudloader-${{ github.ref_name }}-linux.tar.bz2
asset_content_type: application/octet-stream