Improved workflows

More of this bullshit devops
This commit is contained in:
einisto 2022-07-27 20:56:23 +03:00
parent 087c99ebd2
commit 7810f6b38c
2 changed files with 11 additions and 9 deletions

View File

@ -2,9 +2,9 @@ name: Cargo Build & Test
on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]
env:
CARGO_TERM_COLOR: always
@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@main
- name: Build
run: cargo build --verbose
- name: Run tests

View File

@ -3,7 +3,7 @@ name: Compile & Release
on:
release:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "*"
env:
CARGO_TERM_COLOR: always
@ -20,8 +20,9 @@ jobs:
archive: tar.gz tar.xz
- target: x86_64-apple-darwin
archive: zip
steps:
- uses: actions/checkout@master
- uses: actions/checkout@main
- name: Compile and release
uses: rust-build/rust-build.action@master
env:
@ -29,3 +30,4 @@ jobs:
with:
RUSTTARGET: ${{ matrix.target }}
ARCHIVE_TYPES: ${{ matrix.archive }}
EXTRA_FILES: "README.md LICENSE"