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 f235b4f
Showing 1 changed file with 28 additions and 6 deletions.
34 changes: 28 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 @@ -76,6 +76,20 @@ jobs:
# Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build . --config $BUILD_TYPE

- name: Create Build64 Environment
run: cmake -E make_directory ${{runner.workspace}}/build64

- name: Configure CMake64
shell: bash
working-directory: ${{runner.workspace}}/build64
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -G "Visual Studio 16 2019"

- name: Build
working-directory: ${{runner.workspace}}/build64
shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build . --config $BUILD_TYPE

- name: Install FFTW3
working-directory: ${{runner.workspace}}/build
shell: powershell
Expand All @@ -92,7 +106,7 @@ 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
Expand All @@ -105,7 +119,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 +154,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 f235b4f

Please sign in to comment.