Improved workflows
More of this bullshit devops
This commit is contained in:
parent
087c99ebd2
commit
7810f6b38c
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user