Skip to content

Removed .vscode from root #16

Removed .vscode from root

Removed .vscode from root #16

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- 'main'
tags:
- "v[0-9]+.[0-9]+.[0-9]+**"
env:
RUSTFLAGS: -D warnings
jobs:
check:
name: Check
runs-on: ubuntu-latest
container:
image: ghcr.io/vita-rust/vitasdk-rs
steps:
- name: Checkout
uses: actions/checkout@v4
- name: "`cargo check`"
run: cargo hack check -Z build-std=std,panic_abort --feature-powerset --examples --bins --tests --target armv7-sony-vita-newlibeabihf
- name: "`cargo clippy`"
run: cargo hack clippy -Z build-std=std,panic_abort --feature-powerset --examples --bins --tests --target armv7-sony-vita-newlibeabihf
- name: Run cargo doc
run: DOCS_RS=1 RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --target armv7-sony-vita-newlibeabihf -Z build-std
- name: Upload docs
uses: actions/upload-artifact@v3
with:
name: docs
path: target/armv7-sony-vita-newlibeabihf/doc
if-no-files-found: error
release:
if: startsWith(github.ref, 'refs/tags/v')
name: GitHub Release
runs-on: ubuntu-latest
needs: check
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
configurationJson: |
{
"tag_resolver": {
"pattern": "v(.+)"
}
}
- name: GH Release
uses: softprops/action-gh-release@v1
with:
body: ${{steps.github_release.outputs.changelog}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish:
if: startsWith(github.ref, 'refs/tags/v')
name: Publish to crates.io
runs-on: ubuntu-latest
needs: check
container:
image: ghcr.io/vita-rust/vitasdk-rs
steps:
- name: Checkout
uses: actions/checkout@v4
- name: publish
run: cargo publish --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}