Skip to content

Car Utils Release win #10

Car Utils Release win

Car Utils Release win #10

on:
release:
types: [created]
workflow_dispatch:
name: Car Utils Release win
jobs:
car_utils:
strategy:
matrix:
include:
- build: windows
os: windows-latest
rust: stable
target: x86_64-pc-windows-msvc
arch: x86_64
# - build: windows
# os: windows-latest
# rust: stable
# target: aarch64-pc-windows-msvc
# arch: aarch64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
- run: cargo build --release --all-features --target ${{ matrix.target }}
env:
TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: gcc-10-aarch64-linux-gnu
- name: Remove File
uses: JesseTG/[email protected]
with:
path: target/${{ matrix.target }}/release/.fingerprint
- name: Remove File
uses: JesseTG/[email protected]
with:
path: target/${{ matrix.target }}/release/examples
- name: Remove File
uses: JesseTG/[email protected]
with:
path: ttarget/${{ matrix.target }}/release/build
- name: Remove File
uses: JesseTG/[email protected]
with:
path: target/${{ matrix.target }}/release/incremental
- name: Remove File
uses: JesseTG/[email protected]
with:
path: target/${{ matrix.target }}/release/examples
- name: Remove File
uses: JesseTG/[email protected]
with:
path: target/${{ matrix.target }}/release/deps
- name: Archive Release
uses: thedoctor0/zip-release@main
with:
type: "tar"
filename: ../../../car_utils.${{ matrix.os }}.${{ matrix.arch }}.tar.gz
directory: target/${{ matrix.target }}/release
path: .
- name: Get release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
- name: upload artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: car_utils.${{ matrix.os }}.${{ matrix.arch }}.tar.gz
asset_name: car_utils.${{ matrix.os }}.${{ matrix.arch }}.tar.gz
asset_content_type: application/gzip