Skip to content

Commit

Permalink
Create ci_build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanperdung authored Apr 29, 2024
1 parent e764fff commit 074d095
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI on SWatch project

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

# env:
# # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
# BUILD_TYPE: Release

jobs:
build:
# 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
runs-on: ubuntu-latest

steps:
- name: Checkout Pico SDK
uses: actions/checkout@v2
with:
repository: https://github.com/raspberrypi/pico-sdk.git
path: pico-sdk

- name: Configure CMake and build
run: |
mkdir -p build
cd build
cmake -DPICO_SDK_PATH=${{github.workspace}}/pico-sdk/ ..

0 comments on commit 074d095

Please sign in to comment.