Skip to content

ci/cd fix: different target for different platform #2

ci/cd fix: different target for different platform

ci/cd fix: different target for different platform #2

Workflow file for this run

name: draft-release
on:
push:
tags: '*'
env:
CARGO_TERM_COLOR: always
jobs:
release:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: windows-latest
target: x86_64-pc-windows-msvc
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup npm
uses: actions/setup-node@v4
- name: Setup rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
override: true
- name: Build with Cargo
run: cargo build --release --target=${{ matrix.target }}
- name: Pack the client
run: cargo xtask package .
- name: Create draft release
uses: ncipollo/release-action@v1
with:
artifacts: "*.vsix"
draft: true
generateReleaseNotes: true