From 3709f0a8931a3769224014d65789d18e8264b520 Mon Sep 17 00:00:00 2001 From: probonopd Date: Mon, 9 Sep 2024 17:08:05 +0000 Subject: [PATCH 1/5] Build on GitHub Actions --- .github/workflows/build.yml | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..e0ddbc5 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,47 @@ +name: Build + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-20.04 + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + submodules: true + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y gcc-arm-none-eabi ninja-build libsdl2-dev cmake + + - name: Build non-native targets + run: | + mkdir build-non-native + cd build-non-native + cat ../CMakeLists.txt + cmake -DCMAKE_BUILD_TYPE=Release -DPLT_TARGET=rpipico -DCMAKE_TOOLCHAIN_FILE=../Platform/MTL/rpipico/toolchain.cmake .. + cmake --build . + ls -l Source/*.uf2 + + - name: Build native target + run: | + mkdir build-native + cd build-native + cat ../CMakeLists.txt + cmake -DCMAKE_BUILD_TYPE=Release -DPLT_TARGET=native .. + cmake --build . + + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: build-artifacts + path: | + build-non-native/Source/*.uf2 + build-native/Source/picoX7* + build-native/docs/Research/exp_dx7 From 6f2cb273530232d93e7047f947fc32778b4d4ee3 Mon Sep 17 00:00:00 2001 From: probonopd Date: Mon, 9 Sep 2024 17:10:49 +0000 Subject: [PATCH 2/5] on: pull_request: --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e0ddbc5..b276a6a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,7 @@ name: Build on: + pull_request: push: branches: - main From 1922185a078eb01b46ecfa3082cdfa55475d0a82 Mon Sep 17 00:00:00 2001 From: probonopd Date: Mon, 9 Sep 2024 17:12:03 +0000 Subject: [PATCH 3/5] Build all pushes --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b276a6a..15e7ad5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,8 +3,8 @@ name: Build on: pull_request: push: - branches: - - main + #branches: + #- main jobs: build: From 89be74ffaa1dc2ed8ec4edb16f37043f4758a5a2 Mon Sep 17 00:00:00 2001 From: probonopd Date: Sun, 15 Sep 2024 07:37:01 +0200 Subject: [PATCH 4/5] Downgrade cmake_minimum_required --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 15e7ad5..dde2d94 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,6 +20,7 @@ jobs: run: | sudo apt-get update sudo apt-get install -y gcc-arm-none-eabi ninja-build libsdl2-dev cmake + sed -i 's/cmake_minimum_required(VERSION [0-9.]\+)/cmake_minimum_required(VERSION 3.0.0/' CMakeLists.txt - name: Build non-native targets run: | From 52275613024c1e3fde20841452550345abefe437 Mon Sep 17 00:00:00 2001 From: probonopd Date: Sun, 15 Sep 2024 07:49:52 +0200 Subject: [PATCH 5/5] Revert last change --- .github/workflows/build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dde2d94..15e7ad5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,6 @@ jobs: run: | sudo apt-get update sudo apt-get install -y gcc-arm-none-eabi ninja-build libsdl2-dev cmake - sed -i 's/cmake_minimum_required(VERSION [0-9.]\+)/cmake_minimum_required(VERSION 3.0.0/' CMakeLists.txt - name: Build non-native targets run: |