Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

fix: remove useless dependences for windows #6

fix: remove useless dependences for windows

fix: remove useless dependences for windows #6

Workflow file for this run

name: Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
permissions:
contents: write
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- os: ubuntu-latest
rust_target: x86_64-unknown-linux-gnu
ext: ''
args: ''
- os: macos-latest
rust_target: x86_64-apple-darwin
ext: ''
args: ''
- os: macos-latest
rust_target: aarch64-apple-darwin
ext: ''
args: ''
- os: windows-latest
rust_target: x86_64-pc-windows-msvc
ext: ''
args: ''
- os: windows-latest
rust_target: aarch64-pc-windows-msvc
ext: ''
args: ''
steps:
- uses: actions/checkout@v3
- name: Add target
run: |
rustup target add ${{matrix.config.rust_target}}
- name: Build
run: cargo build --release --target ${{matrix.config.rust_target}}
- uses: actions/[email protected]
name: Upload (Windows)
if: ${{ matrix.config.os == 'windows-latest' }}
with:
path: target/${{matrix.config.rust_target}}/caie-code-installer.exe
retention-days: 7
- uses: actions/[email protected]
name: Upload (macOS & Linux)
if: ${{ matrix.config.os != 'windows-latest' }}
with:
path: target/${{matrix.config.rust_target}}/caie-code-installer
retention-days: 7