diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..5674c815 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,39 @@ +name: Build libppd + +on: + push: + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y \ + build-essential \ + autoconf \ + automake \ + autopoint \ + gettext \ + libtool \ + pkg-config \ + libcups2-dev \ + libcupsfilters-dev \ + ghostscript \ + poppler-utils \ + mupdf-tools + + - name: Build project + run: | + ./autogen.sh + ./configure + make + + - name: Run tests + run: make check \ No newline at end of file diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 00000000..eff14341 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,58 @@ +name: CodeQL + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + analyze: + name: CodeQL Analyze + runs-on: ubuntu-latest + + permissions: + contents: read + security-events: write + + strategy: + matrix: + language: [ 'cpp' ] + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y \ + build-essential \ + autoconf \ + automake \ + autopoint \ + gettext \ + libtool \ + libtool-bin \ + pkg-config \ + libcups2-dev \ + libcupsfilters-dev \ + ghostscript \ + mupdf-tools \ + poppler-utils + + - name: Build project + run: | + ./autogen.sh + ./configure + make + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + continue-on-error: true + \ No newline at end of file