-
-
Notifications
You must be signed in to change notification settings - Fork 3
58 lines (50 loc) · 1.46 KB
/
ci.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-project:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/[email protected]
- name: Setup cmake
uses: jwlawson/[email protected]
with:
# We need recent version with support for WORKING_DIRECTORY in add_test()
cmake-version: '3.27.6'
- name: Run CMake
uses: threeal/[email protected]
with:
run-build: true
run-test: true
test-args: "--output-on-failure"
build-site:
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: "true"
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build in the dev container image
uses: devcontainers/[email protected]
with:
imageName: ghcr.io/testcontainers/testcontainers-native-builder
cacheFrom: ghcr.io/testcontainers/testcontainers-native-builder
push: never
runCmd: |
mkdocs build
env: |
FULL_BUILD=true
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}