Skip to content

Commit

Permalink
Fix github action to add 64bit build and soapy build
Browse files Browse the repository at this point in the history
  • Loading branch information
howard0su committed Jul 9, 2024
1 parent dd9e9d9 commit 1675343
Showing 1 changed file with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
name: build-frmware

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install libs
# Some projects don't allow in-source building, so create a separate build directory
Expand All @@ -35,7 +35,7 @@ jobs:
shell: bash
run: make -C ./SDDC_FX3

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: firmware
path: ./SDDC_FX3/SDDC_FX3.img
Expand All @@ -49,7 +49,7 @@ jobs:
needs: build-firmware

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Create Build Environment
# Some projects don't allow in-source building, so create a separate build directory
Expand All @@ -66,7 +66,7 @@ jobs:
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -G "Visual Studio 16 2019" -A Win32

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: firmware

Expand All @@ -92,11 +92,26 @@ jobs:
shell: powershell
run: Compress-Archive -DestinationPath SDDC_EXTIO.ZIP -LiteralPath ${{runner.workspace}}/build/ExtIO_sddc/Release/ExtIO_SDDC.dll,${{runner.workspace}}/build/unittest/libfftw3f-3.dll,README.md

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: extio-package
path: SDDC_EXTIO.ZIP

- name: Create Build64 Environment
# Some projects don't allow in-source building, so create a separate build directory
# We'll use this as our working directory for all subsequent commands
run: cmake -E make_directory ${{runner.workspace}}/build64

- name: Configure CMake64
# Use a bash shell so we can use the same syntax for environment variable
# access regardless of the host operating system
shell: bash
working-directory: ${{runner.workspace}}/build64
# Note the current convention is to use the -S and -B options here to specify source
# and build directories, but this is only available with CMake 3.13 and higher.
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -G "Visual Studio 16 2019"

build-on-linux:
# The CMake configure and build commands are platform agnostic and should work equally
# well on Windows or Mac. You can convert this to a matrix build if you need
Expand All @@ -105,7 +120,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install libs
# Some projects don't allow in-source building, so create a separate build directory
Expand Down Expand Up @@ -140,3 +155,11 @@ jobs:
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C $BUILD_TYPE

- name: Create Package
shell: bash
run: zip SDDC_SOAPY.ZIP ${{runner.workspace}}/build/SoapySDDC/libSDDCSupport.so

- uses: actions/upload-artifact@v4
with:
name: soapy-package
path: SDDC_SOAPY.ZIP

0 comments on commit 1675343

Please sign in to comment.