Skip to content

Merge pull request #17 from SlashNephy/renovate/actions-checkout-4.x #10

Merge pull request #17 from SlashNephy/renovate/actions-checkout-4.x

Merge pull request #17 from SlashNephy/renovate/actions-checkout-4.x #10

Workflow file for this run

name: build-rust
on:
push:
paths:
- 'src/**'
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: windows-2022
steps:
# https://zenn.dev/kt3k/articles/d557cc874961ab
- name: Checkout Repository
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
with:
submodules: recursive
fetch-depth: 0
- name: Install Python
uses: actions/setup-python@v4
- name: Download git-restore-mtime
run: curl -O https://raw.githubusercontent.com/MestreLion/git-tools/main/git-restore-mtime
- name: Restore mtime
run: python ./git-restore-mtime
- name: Build
run: cargo build --verbose --release
- name: Prepare Artifacts
shell: powershell
run: |
New-Item -Path Artifacts -ItemType Directory
Copy-Item -Path target/release/annict_recorder.dll -Destination Artifacts/annict_recorder.tvtp
Copy-Item -Path AnnictRecorder.ini -Destination Artifacts/
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: annict-recorder-rs
if-no-files-found: error
path: Artifacts/