-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 1017 Bytes
/
build.yml
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
31
32
33
34
35
36
37
38
39
40
name: build
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Build on Ubuntu
if: runner.os == 'Linux'
run: make
# - name: Setup Build Environment on Windows
# if: runner.os == 'Windows'
# uses: microsoft/setup-msbuild@v1
# with:
# msbuild-version: 'latest'
# - name: Build on Windows with MSBuild
# if: runner.os == 'Windows'
# run: |
# msbuild teapot.sln /p:Configuration=Release /p:Platform="x64" /p:CXXStandard=20 /p:LanguageStandard=C++20
test:
runs-on: ubuntu-latest # Or another suitable OS
needs: build # Run the test after the build job
steps:
- uses: actions/checkout@v3
- name: Run endpoint tests
run: bash ./test_endpoints.sh # Assuming your script is named test_endpoints.sh