This repository has been archived by the owner on Feb 17, 2024. It is now read-only.
Dockerfile: install libclang-dev in the image #105
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: CI | |
on: [ workflow_dispatch, push, pull_request ] | |
jobs: | |
omnilint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3.5.3 | |
- uses: docker://lpenz/omnilint:0.5.1 | |
docker-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3.5.3 | |
with: | |
repository: lpenz/ogle | |
- uses: actions/checkout@v3.5.3 | |
with: | |
path: ./ghaction-rust-coverage | |
- run: docker pull rust:slim | |
- uses: ./ghaction-rust-coverage | |
- run: grep '^SF:' lcov.info | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3.5.3 | |
with: | |
path: ghaction-rust-coverage | |
- uses: actions/checkout@v3.5.3 | |
with: | |
repository: lpenz/ogle | |
path: ogle | |
fetch-depth: 0 | |
- uses: ./ghaction-rust-coverage | |
with: | |
working_directory: ogle | |
publish-dockerhub: | |
needs: [ omnilint, docker-build ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3.5.3 | |
- id: version | |
uses: docker://lpenz/ghaction-version-gen:0.13.2 | |
- uses: docker/setup-buildx-action@v2.9.1 | |
- uses: docker/login-action@v2.2.0 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
if: ${{ steps.version.outputs.version_docker_ci != 'null' }} | |
- uses: docker/build-push-action@v4.1.1 | |
with: | |
push: ${{ steps.version.outputs.version_docker_ci != 'null' }} | |
tags: ${{ github.repository }}:${{ steps.version.outputs.version_docker_ci }} | |
publish-github-release: | |
needs: [ publish-dockerhub ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3.5.3 | |
- id: version | |
uses: docker://lpenz/ghaction-version-gen:0.13.2 | |
- name: publish github release | |
uses: "marvinpinto/action-automatic-releases@v1.2.1" | |
if: steps.version.outputs.version_tagged != '' | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
prerelease: false |