Skip to content

chore: update deps

chore: update deps #26

Workflow file for this run

name: CI
on:
push:
branches: [main]
tags: [v*]
pull_request:
branches: [main]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- uses: actions/cache@v3
with:
path: ~/.cargo/git
key: cargo-index-${{ hashFiles('**/Cargo.lock') }}
- uses: actions/cache@v3
with:
path: target
key: cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- shell: bash
run: rustup target add i686-pc-windows-msvc
- shell: bash
run: cargo build --target i686-pc-windows-msvc --release
- shell: bash
run: |
mkdir artifact
mv ./target/i686-pc-windows-msvc/release/dinput8.dll \
./artifact/dinput8.dll
- uses: actions/upload-artifact@v3
with:
name: artifact
path: ./artifact
release:
needs: build
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
name: artifact
- run: |
zip --junk-paths release ./artifact/*
- id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./release.zip
asset_name: ${{ github.event.repository.name }}.zip
asset_content_type: application/zip