This is a docker image for build Debian package.
create Github Action YAML file .github/workflows/pr.yml
:
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/linuxdeepin/deepin-github:latest
options: --privileged
steps:
- uses: actions/checkout@v2
- run: /entrypoint.sh
Use deepin-community repository by default, we can use /entrypoint.sh reponame
to special which repo used for compiling.
The currently maintainly repos could be found in repos folder.
Multi-repos build Actions example:
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/linuxdeepin/deepin-github:latest
options: --privileged
strategy:
matrix:
repo: [deepin, buster]
steps:
- uses: actions/checkout@v2
- run: /entrypoint.sh ${{ matrix.repo }}
Because we use Pbuilder to build package, Pbuilder need permission to mount something like /proc
...