-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (47 loc) · 1.64 KB
/
windows.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
name: windows
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: windows-latest
name: x64
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Setup cargo cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo
- name: Setup target build cache
uses: actions/cache@v3
with:
path: target/
key: ${{ runner.os }}-cargo-target
- name: Cargo release build
run: cargo build --release --all-features --all-targets
- name: Create dist archive
run: |
New-Item -Force -ItemType Directory $env:RUNNER_TEMP/dist
New-Item -Force -ItemType Directory $env:RUNNER_TEMP/dist/tools
New-Item -Force -ItemType Directory $env:RUNNER_TEMP/dist/mkplugins
New-Item -Force -ItemType Directory $env:RUNNER_TEMP/dist/mods
Copy-Item -Force target/release/dinput8.dll $env:RUNNER_TEMP/dist
Copy-Item -Force target/release/makaikit_modloader_d7.dll $env:RUNNER_TEMP/dist/mkplugins
Copy-Item -Force target/release/examples/fafullfs-unpack.exe $env:RUNNER_TEMP/dist/tools
Copy-Item -Force target/release/examples/d7db-unpack.exe $env:RUNNER_TEMP/dist/tools
- name: Artifact
uses: actions/upload-artifact@v3
with:
name: makaikit-${{ github.ref_name }}.zip
path: ${{ runner.temp }}/dist
retention-days: 7