-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (59 loc) · 1.5 KB
/
build_release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: cmake_raspberry_build
on:
push:
branches:
- main
tags: [ v**]
paths:
- '**'
- '!Docs/**'
- '!README.md'
pull_request:
branches:
- main
tags: [ v**]
paths:
- '**'
- '!Docs/**'
- '!README.md'
jobs:
build:
runs-on: self-hosted
steps:
- uses: AutoModality/action-clean@v1
- name: checkout
uses: actions/checkout@v2
- name: Run arm build
uses: pguyot/arm-runner-action@v1
id: arm_runner_tests
with:
image_additional_mb: 4096
base_image: 'raspios_lite:2021-05-07'
cpu: 'arm1176'
optimize_image: no
copy_artifact_path: 'cmake_*_armhf.deb'
commands: |
echo hallo
- name: 'Upload Artifact'
uses: actions/upload-artifact@v2
with:
name: cmake
path: cmake_*_armhf.deb
retention-days: 1
# - name: make release
# if: ${{ (startsWith(github.ref, 'refs/tags/v')) && (!(contains(github.ref, '-beta'))) }}
# uses: softprops/action-gh-release@v1
# with:
# files: |
# ./build/volumehidtoosc_*.deb
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: make release
# if: ${{ (startsWith(github.ref, 'refs/tags/v')) && ((contains(github.ref, '-beta'))) }}
# uses: softprops/action-gh-release@v1
# with:
# prerelease: true
# files: |
# ./build/volumehidtoosc_*.deb
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}