Skip to content

Commit

Permalink
update workflow to build static link tinyxml
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Li <Frank.Li@nxp.com>
  • Loading branch information
nxpfrankli committed Jan 30, 2024
1 parent 1bf0d40 commit 7347a80
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yaml
Expand Up @@ -33,17 +33,16 @@ jobs:
- name: Build
run: |
git fetch --tags --force # Retrieve annotated tags. #issue 290
mkdir build
cd build
if [ "${{ matrix.os }}" == "ubuntu-20.04" ]; then cmake -D 'STATIC=1' -D 'FORCE_OLD=on' .. ; else cmake -D 'STATIC=1' ..; fi;
if [ "${{ matrix.os }}" == "ubuntu-20.04" ]; then git submodule update --init tinyxml2; cd tinyxml2; cmake .; make; cd ..; fi;
if [ "${{ matrix.os }}" == "ubuntu-20.04" ]; then cmake -D 'STATIC=1' -D 'FORCE_OLD=on' . ; else cmake .; fi;
make
- name: Upload Build Artifacts
if: matrix.os == 'ubuntu-20.04'
uses: actions/upload-artifact@v3
with:
name: uuu
path: ./build/uuu/uuu
path: ./uuu/uuu

- name: Create or Update Release
if: matrix.os == 'ubuntu-20.04' && github.ref_type == 'tag'
Expand All @@ -54,4 +53,4 @@ jobs:
commit: ${{ github.sha }}
allowUpdates: true
prerelease: true
artifacts: "./build/uuu/uuu"
artifacts: "./uuu/uuu"

0 comments on commit 7347a80

Please sign in to comment.