mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-05 02:05:43 +00:00
RDA5981 (#1813)
This commit is contained in:
committed by
GitHub
parent
17cc6353b6
commit
6083ddfca5
30
.github/workflows/workflow.yaml
vendored
30
.github/workflows/workflow.yaml
vendored
@ -23,10 +23,20 @@ jobs:
|
||||
steps:
|
||||
- name: Source checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Update SDKs if required
|
||||
run: make update-submodules
|
||||
- name: Set outputs
|
||||
id: refs
|
||||
run: |
|
||||
export BRANCH=${GITHUB_REF#refs/*/}
|
||||
echo "branch: ${BRANCH}"
|
||||
export BRANCHTRANSLATED=$(echo ${BRANCH} | tr '/' '_')
|
||||
echo "short_ref: ${BRANCHTRANSLATED}"
|
||||
export VERSION=${BRANCHTRANSLATED}_$(git rev-parse --short=12 HEAD)
|
||||
echo "short_ref=${BRANCHTRANSLATED}" >> $GITHUB_OUTPUT
|
||||
echo "sha_short=SHA-$(git rev-parse --short=12 HEAD)" >> $GITHUB_OUTPUT
|
||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||
- name: Semantic Release
|
||||
id: semantic
|
||||
if: github.ref == 'refs/heads/main' || github.ref_name == 'alpha'
|
||||
uses: cycjimmy/semantic-release-action@v4
|
||||
with:
|
||||
dry_run: true
|
||||
@ -37,22 +47,16 @@ jobs:
|
||||
conventional-changelog-conventionalcommits@7
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Set outputs
|
||||
id: refs
|
||||
- name: Set release outputs
|
||||
id: refs_release
|
||||
if: github.ref == 'refs/heads/main' || github.ref_name == 'alpha'
|
||||
run: |
|
||||
export BRANCH=${GITHUB_REF#refs/*/}
|
||||
echo "branch: ${BRANCH}"
|
||||
export BRANCHTRANSLATED=$(echo ${BRANCH} | tr '/' '_')
|
||||
echo "short_ref: ${BRANCHTRANSLATED}"
|
||||
export VERSION=""
|
||||
if ${{ steps.semantic.outputs.new_release_published == 'true' }}; then
|
||||
export VERSION=${{ steps.semantic.outputs.new_release_version }}
|
||||
else
|
||||
export VERSION=${BRANCHTRANSLATED}_$(git rev-parse --short=12 HEAD)
|
||||
fi
|
||||
echo "new_release=${{ steps.semantic.outputs.new_release_published }}" >> $GITHUB_OUTPUT
|
||||
echo "short_ref=${BRANCHTRANSLATED}" >> $GITHUB_OUTPUT
|
||||
echo "sha_short=SHA-$(git rev-parse --short=12 HEAD)" >> $GITHUB_OUTPUT
|
||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||
|
||||
build2:
|
||||
@ -194,6 +198,9 @@ jobs:
|
||||
gcc: 10.3-2021.10
|
||||
- platform: OpenECR6600
|
||||
variant: default
|
||||
- platform: OpenRDA5981
|
||||
variant: default
|
||||
gcc: 6-2017-q2
|
||||
|
||||
# extras for BK7231T
|
||||
- platform: OpenBK7231T
|
||||
@ -233,6 +240,7 @@ jobs:
|
||||
architecture: 'x64'
|
||||
cache: 'pip'
|
||||
- name: Install dependencies
|
||||
if: ${{ matrix.platform == 'OpenLN882H' }}
|
||||
uses: awalsh128/cache-apt-pkgs-action@latest
|
||||
with:
|
||||
packages: cmake
|
||||
|
||||
Reference in New Issue
Block a user