CI: remove BUILD_TYPE environment variable.

We were only setting this to Release, so there is no current need for an
environment variable.

Removing it allows us to reuse some steps for Windows, where the syntax
to insert an environment variable is different.
This commit is contained in:
Martin Ling
2022-12-13 02:27:55 +00:00
parent eff4a20022
commit 9c0a3e0244

View File

@ -8,9 +8,6 @@ on:
schedule: schedule:
- cron: 1 12 * * 1 - cron: 1 12 * * 1
env:
BUILD_TYPE: Release
jobs: jobs:
host: host:
strategy: strategy:
@ -40,12 +37,12 @@ jobs:
- name: Configure CMake - name: Configure CMake
shell: bash shell: bash
working-directory: ${{runner.workspace}}/host/build working-directory: ${{runner.workspace}}/host/build
run: cmake $GITHUB_WORKSPACE/host/ -DCMAKE_BUILD_TYPE=$BUILD_TYPE run: cmake $GITHUB_WORKSPACE/host/ -DCMAKE_BUILD_TYPE=Release
- name: Build - name: Build
working-directory: ${{runner.workspace}}/host/build working-directory: ${{runner.workspace}}/host/build
shell: bash shell: bash
run: cmake --build . --config $BUILD_TYPE run: cmake --build . --config Release
- name: Create Build Environment (libhackrf) - name: Create Build Environment (libhackrf)
run: cmake -E make_directory ${{runner.workspace}}/host/libhackrf/build run: cmake -E make_directory ${{runner.workspace}}/host/libhackrf/build
@ -53,18 +50,18 @@ jobs:
- name: Configure CMake (libhackrf) - name: Configure CMake (libhackrf)
shell: bash shell: bash
working-directory: ${{runner.workspace}}/host/libhackrf/build working-directory: ${{runner.workspace}}/host/libhackrf/build
run: cmake $GITHUB_WORKSPACE/host/libhackrf/ -DCMAKE_BUILD_TYPE=$BUILD_TYPE run: cmake $GITHUB_WORKSPACE/host/libhackrf/ -DCMAKE_BUILD_TYPE=Release
- name: Build (libhackrf) - name: Build (libhackrf)
working-directory: ${{runner.workspace}}/host/libhackrf/build working-directory: ${{runner.workspace}}/host/libhackrf/build
shell: bash shell: bash
run: cmake --build . --config $BUILD_TYPE run: cmake --build . --config Release
- name: Install (libhackrf) - name: Install (libhackrf)
working-directory: ${{runner.workspace}}/host/libhackrf/build working-directory: ${{runner.workspace}}/host/libhackrf/build
shell: bash shell: bash
run: | run: |
sudo cmake --install . --config $BUILD_TYPE sudo cmake --install . --config Release
- name: Create Build Environment (hackrf-tools) - name: Create Build Environment (hackrf-tools)
run: cmake -E make_directory ${{runner.workspace}}/host/hackrf-tools/build run: cmake -E make_directory ${{runner.workspace}}/host/hackrf-tools/build
@ -72,12 +69,12 @@ jobs:
- name: Configure CMake (hackrf-tools) - name: Configure CMake (hackrf-tools)
shell: bash shell: bash
working-directory: ${{runner.workspace}}/host/hackrf-tools/build working-directory: ${{runner.workspace}}/host/hackrf-tools/build
run: cmake $GITHUB_WORKSPACE/host/hackrf-tools/ -DCMAKE_BUILD_TYPE=$BUILD_TYPE run: cmake $GITHUB_WORKSPACE/host/hackrf-tools/ -DCMAKE_BUILD_TYPE=Release
- name: Build (hackrf-tools) - name: Build (hackrf-tools)
working-directory: ${{runner.workspace}}/host/hackrf-tools/build working-directory: ${{runner.workspace}}/host/hackrf-tools/build
shell: bash shell: bash
run: cmake --build . --config $BUILD_TYPE run: cmake --build . --config Release
firmware: firmware:
strategy: strategy:
@ -117,10 +114,10 @@ jobs:
- name: Configure CMake - name: Configure CMake
shell: bash shell: bash
working-directory: ${{runner.workspace}}/firmware/build working-directory: ${{runner.workspace}}/firmware/build
run: cmake $GITHUB_WORKSPACE/firmware/ -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBOARD=${{ matrix.board }} run: cmake $GITHUB_WORKSPACE/firmware/ -DCMAKE_BUILD_TYPE=Release -DBOARD=${{ matrix.board }}
- name: Build - name: Build
working-directory: ${{runner.workspace}}/firmware/build working-directory: ${{runner.workspace}}/firmware/build
shell: bash shell: bash
run: cmake --build . --config $BUILD_TYPE run: cmake --build . --config Release