-
Notifications
You must be signed in to change notification settings - Fork 31
58 lines (58 loc) · 1.7 KB
/
build-native.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
name: Build Native Images
on:
release:
types: [published]
pull_request:
branches: [main]
jobs:
Build-Native-Images:
strategy:
matrix:
os: ["rhel-8.7", "macos-11", "odroid"]
runs-on: ${{ matrix.os }}
steps:
- name: "Checkout FPP Repository"
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set architecture type (aarch64)
if: ${{ matrix.os == 'odroid' }}
run: echo "architecture=aarch64" >> "$GITHUB_ENV"
- name: Set architecture type (amd64)
if: ${{ matrix.os != 'odroid' }}
run: echo "architecture=amd64" >> "$GITHUB_ENV"
- name: Image Build Step
working-directory: ./compiler
run: |
. ${GITHUB_WORKSPACE}/.github/workflows/env-setup ${{ env.architecture }}
./release
mv native-fpp-*.tar.gz "${GITHUB_WORKSPACE}"
- name: Publish Release Binaries
if: ${{ github.event_name == 'release' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ${GITHUB_WORKSPACE}/.github/workflows/publish native-fpp-*.tar.gz
Build-PyPI-Package:
if: ${{ github.event_name == 'release' }}
needs: Build-Native-Images
runs-on: ubuntu-latest
steps:
- name: "Checkout FPP Repository"
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Test PyPI
uses: fprime-community/publish-pypi@main
env:
TWINE_PASSWORD: ${{ secrets.TESTPYPI_CREDENTIAL }}
with:
package: "fprime-fpp"
steps: "sdist"
- name: PyPI
uses: fprime-community/publish-pypi@main
env:
TWINE_PASSWORD: ${{ secrets.PYPI_CREDENTIAL }}
with:
repo: "pypi"
package: "fprime-fpp"
steps: "sdist"