Skip to content

Commit

Permalink
Add CI to build within dev container
Browse files Browse the repository at this point in the history
  • Loading branch information
dkhalife authored Nov 24, 2024
1 parent 87b9b67 commit b4536fd
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 8 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,20 @@ on:
jobs:
build:
runs-on: ubuntu-latest

permissions:
packages: write
steps:
- uses: actions/checkout@v4
- name: make clean
working-directory: ./src
run: make clean
- name: make
working-directory: ./src
run: make
- name: Login to registry
run: |
docker login --username dkhalife --password ${{ secrets.GH_PAT }} ghcr.io
- name: Pre-build image and run build in dev container
uses: devcontainers/ci@v0.3
with:
imageName: ghcr.io/dkhalife/eclipse-mosquitto-with-auth
cacheFrom: ghcr.io/dkhalife/eclipse-mosquitto-with-auth
push: always
runCmd: |
cd src
make clean
make
6 changes: 6 additions & 0 deletions src/Pugin.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#pragma once

class Plugin
{

};
2 changes: 1 addition & 1 deletion src/mosquitto-plugin-main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "Plugin.h"
#include "plugin.h"

#include <mosquitto.h>
#include <mosquitto_broker.h>
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit b4536fd

Please sign in to comment.