aboutsummaryrefslogtreecommitdiff
path: root/libs/esptk/.github/workflows/build.yml
blob: a63200590ae0e34d44e8e240494858ccfb2ca52a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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