2021-10-06 22:37:29 +08:00
|
|
|
name: CMake
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
env:
|
|
|
|
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
|
|
|
BUILD_TYPE: Release
|
|
|
|
|
|
|
|
jobs:
|
2021-10-08 10:40:47 +08:00
|
|
|
linux:
|
2021-10-06 22:37:29 +08:00
|
|
|
# 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
|
|
|
|
# cross-platform coverage.
|
|
|
|
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
|
2021-10-08 10:40:47 +08:00
|
|
|
runs-on: ubuntu-latest
|
2021-10-06 22:37:29 +08:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-10-08 10:45:36 +08:00
|
|
|
|
2021-10-06 22:46:11 +08:00
|
|
|
- name: PULL_CORE
|
|
|
|
run: cd ${{github.workspace}}/port/linux && bash pull-core.sh
|
|
|
|
|
2021-10-06 22:40:43 +08:00
|
|
|
- name: INIT
|
2021-10-06 22:37:29 +08:00
|
|
|
|
2021-10-06 22:40:43 +08:00
|
|
|
run: cd ${{github.workspace}}/port/linux && bash init.sh
|
|
|
|
|
|
|
|
- name: TEST
|
2021-10-06 22:37:29 +08:00
|
|
|
# Build your program with the given configuration
|
2021-10-06 22:40:43 +08:00
|
|
|
run: cd ${{github.workspace}}/port/linux && bash test.sh
|
2021-10-06 22:37:29 +08:00
|
|
|
|
2021-10-08 10:40:47 +08:00
|
|
|
windows:
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- uses: ryanwinter/arm-none-eabi-gcc@v2.0.1
|
|
|
|
with:
|
|
|
|
# GNU Embedded Toolchain for Arm release name, in the V-YYYY-qZ format (e.g. "9-2019-q4")
|
|
|
|
release: '9-2019-q4'
|
|
|
|
- name: PACKAGE_MANAGER
|
|
|
|
run: cd ${{github.workspace}}/tools/pikaPackageManager && go run main.go
|
2021-10-08 10:45:36 +08:00
|
|
|
|
|
|
|
- name: PIKAPI_BOOTLOADER
|
|
|
|
run: cd ${{github.workspace}}/bsp/PikaPi_Zero/bootloader && make
|