diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/release.yaml | 49 | ||||
| -rw-r--r-- | .github/workflows/rust.yaml | 34 |
2 files changed, 83 insertions, 0 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..65f896f --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,49 @@ +name: Release ⚾ + +on: + push: + tags: + - '*' + +jobs: + release: + runs-on: ubuntu-20.04 + steps: + - name: Checkout 🛒 + uses: actions/checkout@v2 + + - name: Toolchain 🧰 + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly-2021-12-04 + components: rustfmt, clippy + override: true + + - name: Build 🏗 + uses: actions-rs/cargo@v1 + continue-on-error: false + with: + command: build + args: --release + + - name: Create Release 🏉 + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ github.token }} + with: + tag_name: ${{ github.ref }} + release_name: ${{ github.ref }} + draft: false + prerelease: false + + - name: Upload Artifacts to Release 💎 + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ github.token }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./target/release/divina + asset_name: divina + asset_content_type: application/x-elf # x-msdownload for Windows diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml new file mode 100644 index 0000000..ee0218a --- /dev/null +++ b/.github/workflows/rust.yaml @@ -0,0 +1,34 @@ +name: Rust ✅ + +on: + push: + paths: + - "crates/**" + pull_request: + paths: + - "crates/**" + +env: + CARGO_TERM_COLOR: always + +jobs: + check: + runs-on: ubuntu-latest + steps: + - name: Checkout 🛒 + uses: actions/checkout@v2 + + - name: Toolchain 🧰 + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly-2021-12-04 + components: rustfmt, clippy + override: true + + - name: Check ✅ + uses: actions-rs/cargo@v1 + continue-on-error: false + with: + command: check + args: --verbose |