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,8 +1,8 @@
|
||||
name: Test
|
||||
name: Test the running changes
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
branches: [ "dev" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
@@ -10,14 +10,11 @@ on:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Cargo test
|
||||
test:
|
||||
name: Test
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Build
|
||||
- name: cargo test
|
||||
uses: actions/checkout@v4
|
||||
run: cargo build --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