From 83072b0391f6f21dd9983dcc8d59a3ffd26210ce Mon Sep 17 00:00:00 2001 From: Bread White <32078281+breadrock1@users.noreply.github.com> Date: Thu, 31 Aug 2023 10:03:06 +0300 Subject: [PATCH] Actions: add master.yml --- .github/workflows/master.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/master.yml diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml new file mode 100644 index 0000000..3c9f058 --- /dev/null +++ b/.github/workflows/master.yml @@ -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