create pdf build action
[mfgtools.git] / .github / workflows / build.yaml
blob6adb8a6bce33af4cd7ae935623f38e769df2fce6
1 name: Build for x64 ubuntu-latest
3 on:
4   push:
5     branches:
6       - master
7   pull_request:
8     types:
9       - opened
10       - synchronize
12 jobs:
13   build:
14     name: Build for x64 ubuntu-latest
15     runs-on: ubuntu-latest
17     steps:
18       - name: Checkout repository
19         uses: actions/checkout@v2
20         with:
21           fetch-depth: 0
23       - name: Set up environment
24         run: sudo DEBIAN_FRONTEND=noninteractive apt-get  --yes --force-yes install libusb-1.0-0-dev libbz2-dev libzstd-dev
26       - name: Build
27         run: |
28           mkdir build
29           cd build
30           cmake ..
31           make
33       - name: Upload Build Artifacts
34         uses: actions/upload-artifact@v2
35         with:
36           name: uuu
37           path: ./build/uuu/uuu
39       - name: Create or Update Release
40         uses: ncipollo/release-action@v1
41         with:
42           name: Release UUU_1.5.${{ github.sha }}_TEST
43           tag: UUU_1.5.${{ github.sha }}_TEST
44           commit: ${{ github.hash }}
45           allowUpdates: true
46           draft: true
47           prerelease: true
48           artifacts: "./build/uuu/uuu"