ci: merge and add step
This commit is contained in:
parent
51a3456e34
commit
ffe6e0197d
3 changed files with 56 additions and 44 deletions
22
.github/workflows/bootpkg.yaml
vendored
22
.github/workflows/bootpkg.yaml
vendored
|
@ -1,22 +0,0 @@
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
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
|
56
.github/workflows/build.yaml
vendored
Normal file
56
.github/workflows/build.yaml
vendored
Normal file
|
@ -0,0 +1,56 @@
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
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
|
22
.github/workflows/pkgr.yaml
vendored
22
.github/workflows/pkgr.yaml
vendored
|
@ -1,22 +0,0 @@
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
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 pkgr/Cargo.toml --verbose --all
|
Loading…
Reference in a new issue