Replace actions-rs with something maintained #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |