Skip to content

Commit

Permalink
Merge pull request #19 from HeDo88TH/add-release-publish
Browse files Browse the repository at this point in the history
Added release publish
  • Loading branch information
pierotofy authored Apr 19, 2023
2 parents f8e35c4 + 52d5fec commit 5f2383c
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: Build

on:
push:
branches: [ main ]
branches: [main]
tags:
- "v*"
pull_request:
branches: [ main ]
branches: [main]

# We dont have tests yet, so we can just build
jobs:
Expand All @@ -15,4 +17,19 @@ jobs:
- name: Install dependencies
run: sudo apt-get update && sudo apt install -y --fix-missing --no-install-recommends git build-essential software-properties-common cmake libtbb-dev libboost-system-dev libboost-serialization-dev libpdal-dev libeigen3-dev
- name: Build
run: mkdir build && cd build && cmake -DWITH_GBT=ON .. && make -j$(nproc)
run: mkdir build && cd build && cmake -DWITH_GBT=ON .. && make -j$(nproc)
- name: Archive compiled binaries
run: cd build && tar -czvf opc.tar.gz pcclassify pctrain
- name: Upload Distribution Files
uses: actions/upload-artifact@v2
with:
name: Compiled Binaries
path: build/opc.tar.gz
- name: Upload Binaries to Release
uses: svenstaro/upload-release-action@v2
if: startsWith(github.ref, 'refs/tags/')
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/opc.tar.gz
tag: ${{ github.ref }}
overwrite: true

0 comments on commit 5f2383c

Please sign in to comment.