Skip to content

Commit

Permalink
Add Github CI action.
Browse files Browse the repository at this point in the history
  • Loading branch information
Holt59 committed Jul 9, 2024
1 parent 6341d26 commit 211d03e
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build ESPTK

on:
push:
branches: master
pull_request:
types: [opened, synchronize, reopened]

jobs:
build:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4

- name: Configure ESPTK build
shell: pwsh
run: |
cmake --preset vs2022-windows "-DCMAKE_INSTALL_PREFIX=install"
- name: Build ESPTK
run: cmake --build vsbuild --config RelWithDebInfo

- name: Install ESPTK
run: cmake --install vsbuild --config RelWithDebInfo

- name: Upload ESPTK artifact
uses: actions/upload-artifact@master
with:
name: esptk
path: ./install
16 changes: 16 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Lint ESPTK

on:
push:
pull_request:
types: [opened, synchronize, reopened]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check format
uses: ModOrganizer2/check-formatting-action@master
with:
check-path: "."

0 comments on commit 211d03e

Please sign in to comment.