-
Notifications
You must be signed in to change notification settings - Fork 112
56 lines (49 loc) · 1.36 KB
/
devcontainer.yaml
File metadata and controls
56 lines (49 loc) · 1.36 KB
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
name: Devcontainer
on:
workflow_dispatch: {}
push:
branches: [ master ]
tags:
- 'v*'
pull_request:
branches: [ master ]
permissions:
contents: read
packages: write
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Login to GitHub Container Registry
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Devcontainer
uses: devcontainers/ci@v0.3
with:
imageName: ghcr.io/${{ github.repository_owner }}/screencloud-devcontainer
cacheFrom: ghcr.io/${{ github.repository_owner }}/screencloud-devcontainer
push: always
- name: Build ScreenCloud
uses: devcontainers/ci@v0.3
with:
cacheFrom: ghcr.io/${{ github.repository_owner }}/screencloud-devcontainer
push: never
runCmd: |
mkdir build
cd build
cmake -GNinja ..
ninja
- name: Test built binary
uses: devcontainers/ci@v0.3
with:
cacheFrom: ghcr.io/${{ github.repository_owner }}/screencloud-devcontainer
push: never
runCmd: |
cd build
./screencloud --version