Skip to content

Commit

Permalink
Update rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukinaha authored Mar 4, 2024
1 parent 629e3e2 commit 25f1d02
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
name: Rust

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
branches:
- main

env:
CARGO_TERM_COLOR: always
name: Release Packaging

jobs:
build:

release:
name: Release Packaging
env:
PROJECT_NAME_UNDERSCORE: tsukimi
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Release Build
run: cargo build --release
- name: 'Upload Artifact'
uses: actions/upload-artifact@v2
with:
name: ${{ env.PROJECT_NAME_UNDERSCORE }}
path: target/release/${{ env.PROJECT_NAME_UNDERSCORE }}

0 comments on commit 25f1d02

Please sign in to comment.