This commit is contained in:
parent
e4eb85f535
commit
04a160d8d3
2 changed files with 24 additions and 59 deletions
59
.github/workflows/build.yaml
vendored
59
.github/workflows/build.yaml
vendored
|
@ -1,59 +0,0 @@
|
|||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'pkgr/**'
|
||||
- 'manifest/**'
|
||||
- 'bootpkg/**'
|
||||
- 'pkgfile/**'
|
||||
|
||||
jobs:
|
||||
check: # check if the code compiles
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: install dependencies
|
||||
run: |
|
||||
apt update -y
|
||||
apt install -y curl gcc g++ make
|
||||
- uses: https://github.com/actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
override: true
|
||||
- uses: https://github.com/actions-rs/cargo@v1
|
||||
with:
|
||||
command: check
|
||||
args: --manifest-path bootpkg/Cargo.toml --verbose --all
|
||||
- uses: https://github.com/actions-rs/cargo@v1
|
||||
with:
|
||||
command: check
|
||||
args: --manifest-path pkgr/Cargo.toml --verbose --all
|
||||
# build: # create artifacts and upload them
|
||||
# needs: check
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
# - name: install dependencies
|
||||
# run: |
|
||||
# apt update -y
|
||||
# apt install -y curl gcc g++ make
|
||||
# - uses: https://github.com/actions-rs/toolchain@v1
|
||||
# with:
|
||||
# toolchain: stable
|
||||
# override: true
|
||||
# - uses: https://github.com/actions-rs/cargo@v1
|
||||
# with:
|
||||
# command: build
|
||||
# args: --release --manifest-path bootpkg/Cargo.toml --verbose --all
|
||||
# continue-on-error: true
|
||||
# - uses: https://github.com/actions-rs/cargo@v1
|
||||
# with:
|
||||
# command: build
|
||||
# args: --release --manifest-path pkgr/Cargo.toml --verbose --all
|
||||
# - uses: actions/upload-artifact@v2
|
||||
# with:
|
||||
# name: bootpkg
|
||||
# path: bootpkg/target/release/bootpkg
|
||||
# - uses: actions/upload-artifact@v2
|
||||
# with:
|
||||
# name: pkgr
|
||||
# path: pkgr/target/release/pkgr
|
24
.woodpecker.yml
Normal file
24
.woodpecker.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
when:
|
||||
event: push
|
||||
|
||||
steps:
|
||||
check: # check if the code compiles
|
||||
image: rust
|
||||
commands:
|
||||
- cargo check --manifest-path bootpkg/Cargo.toml --verbose --all
|
||||
- cargo check --manifest-path pkgr/Cargo.toml --verbose --all
|
||||
build:
|
||||
image: rust
|
||||
commands:
|
||||
- cargo build --release --manifest-path bootpkg/Cargo.toml --verbose --all
|
||||
- cargo build --release --manifest-path pkgr/Cargo.toml --verbose --all
|
||||
publish:
|
||||
image: woodpeckerci/plugin-gitea-release
|
||||
settings:
|
||||
base_url: https://git.ixvd.net
|
||||
files:
|
||||
- "bootpkg/target/release/bootpkg"
|
||||
- "pkgr/target/release/pkgr"
|
||||
api_key:
|
||||
from_secret: GITEA_ACCESS_TOKEN
|
||||
target: main
|
Loading…
Reference in a new issue