-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
49cf7e1
commit 83072b0
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Build | ||
|
||
run-name: ${{ github.actor }} is building action | ||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-20.04 | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Install prerequisites | ||
run: | | ||
sudo apt update | ||
sudo apt install -y build-essential curl \ | ||
cmake clang libclang-dev llvm llvm-dev \ | ||
qt5-default libopencv-dev \ | ||
python3-dev python3-numpy python3-opencv | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- uses: webfactory/ssh-agent@v0.7.0 | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
- uses: PyO3/maturin-action@v1 | ||
with: | ||
command: build | ||
args: --release | ||
rust-toolchain: nightly |