Skip to content

fix: deserialize duration and memory size error #22

fix: deserialize duration and memory size error

fix: deserialize duration and memory size error #22

Workflow file for this run

name: Release
on:
push:
paths:
- "src/**"
- "!**.md"
- ".github/**"
workflow_dispatch:
permissions: write-all
jobs:
linux-release:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-musl
archive: tar.gz tar.xz tar.zst
steps:
- uses: actions/checkout@master
- name: Compile and release
id: compile
uses: rust-build/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
RUSTTARGET: ${{ matrix.target }}
ARCHIVE_TYPES: ${{ matrix.archive }}
EXTRA_FILES: "LICENSE README.md"
UPLOAD_MODE: release
- name: upload release
if: startsWith(github.event.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ steps.compile.outputs.BUILT_ARCHIVE }}
asset_name: yarusto_x86_64_${{ github.ref_name }}_linux.tar.zst
tag: ${{ github.ref }}
overwrite: true
windows-release:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-pc-windows-gnu
archive: zip
steps:
- uses: actions/checkout@master
- name: Compile and release
id: compile
uses: rust-build/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
RUSTTARGET: ${{ matrix.target }}
ARCHIVE_TYPES: ${{ matrix.archive }}
EXTRA_FILES: "LICENSE README.md"
UPLOAD_MODE: release
- name: upload release
if: startsWith(github.event.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ steps.compile.outputs.BUILT_ARCHIVE }}
asset_name: yarusto_x86_64_${{ github.ref_name }}_win.zip
tag: ${{ github.ref }}
overwrite: true
macos-release:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-apple-darwin
archive: zip
steps:
- uses: actions/checkout@master
- name: Compile and release
id: compile
uses: rust-build/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
RUSTTARGET: ${{ matrix.target }}
ARCHIVE_TYPES: ${{ matrix.archive }}
EXTRA_FILES: "LICENSE README.md"
UPLOAD_MODE: release
- name: upload release
if: startsWith(github.event.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ steps.compile.outputs.BUILT_ARCHIVE }}
asset_name: yarusto_x86_64_${{ github.ref_name }}_macos.zip
tag: ${{ github.ref }}
overwrite: true