added release pipeline, tweaked test pipeline
Some checks failed
Build the release program / Cargo build release (push) Failing after 1s
Some checks failed
Build the release program / Cargo build release (push) Failing after 1s
This commit is contained in:
@@ -1,23 +1,20 @@
|
|||||||
name: Test
|
name: Test the running changes
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "master" ]
|
branches: [ "dev" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "master" ]
|
branches: [ "master" ]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
test:
|
||||||
name: Cargo test
|
name: Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Build
|
- name: cargo test
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
run: cargo build --verbose
|
run: cargo test --verbose
|
||||||
|
|
||||||
- name: Run tests
|
|
||||||
run: cargo test --verbose
|
|
||||||
|
|||||||
30
.gitea/workflows/pipeline.yml
Normal file
30
.gitea/workflows/pipeline.yml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
name: Build the release program
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["master"]
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Cargo build release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Test
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
run: cargo test --verbose
|
||||||
|
|
||||||
|
- name: Build release
|
||||||
|
run: cargo build --release --verbose
|
||||||
|
|
||||||
|
- name: tar /target/release
|
||||||
|
run: tar -czf release.tar.gz /target/release
|
||||||
|
|
||||||
|
- name: Release
|
||||||
|
uses: akkuman/gitea-release-action@v1
|
||||||
|
with:
|
||||||
|
files: |-
|
||||||
|
release.tar.gz
|
||||||
Reference in New Issue
Block a user