Skip to content

add simple release management with cargo-release #25

add simple release management with cargo-release

add simple release management with cargo-release #25

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
- next
- trunk
- release/*
- feature/*
- bugfix/*
- hotfix/*
- chore/*
- *

Check failure on line 14 in .github/workflows/main.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yaml

Invalid workflow file

You have an error in your yaml syntax on line 14
push:
branches:
- next
- main
- trunk
- release/*
- feature/*
- bugfix/*
- hotfix/*
- chore/*
release:
types:
- released
- prereleased
jobs:
cargo_lint:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: x86_64-unknown-linux-gnu
override: true
cargo_build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: windows-latest
target: x86_64-pc-windows-msvc
- os: macos-latest
target: x86_64-apple-darwin
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: ${{ matrix.target }}
override: true
- name: Run test
run: cargo test
- name: Build application
run: cargo build --release --target ${{ matrix.target }}
- name: Save artifact
uses: actions/upload-artifact@v3
with:
name: neuronek-cli-${{ matrix.target }}
path: |
target/${{ matrix.target }}/release/neuronek-cli
target/${{ matrix.target }}/release/neuronek-cli.exe
cargo_release:
runs_on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: ${{ matrix.target }}
override: true
- name: Install semantic-rs
run: cargo install semantic-rs
- name: Run semantic-rs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: semantic-rs