build #1
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: build | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Setup toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: i686-pc-windows-msvc | |
components: rustfmt, clippy | |
- name: Build | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --release --target=i686-pc-windows-msvc | |
- name: Prepare for upload | |
run: | | |
mkdir artifact | |
mkdir artifact/saori-qrcode | |
copy target/i686-pc-windows-msvc/release/saori_qrcode.dll artifact/saori-qrcode/saori_qrcode.dll | |
copy README.md artifact/saori-qrcode/README.md | |
copy LICENSE artifact/saori-qrcode/LICENSE | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: saori-qrcode | |
path: artifact/ |