From 56247ba0ba2bff9f31e694a36208a690779feead Mon Sep 17 00:00:00 2001 From: sulincix Date: Fri, 10 May 2024 22:56:14 +0000 Subject: [PATCH] update better CI/CD for github mirror --- .github/workflows/blank.yml | 67 ++++++++++++++++++++----------------- 1 file changed, 37 insertions(+), 30 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 19e3ed8..fbb22e1 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -2,40 +2,47 @@ name: CI on: push: - branches: [ master ] + branches: [master] workflow_dispatch: jobs: - compile: - name: Create deb package - runs-on: ubuntu-latest - steps: - - name: Check out the repo - uses: actions/checkout@v2 - - name: Run the build process with Docker - uses: addnab/docker-run-action@v3 - with: - image: debian:testing - options: -v ${{ github.workspace }}:/root -v /output:/output - run: | - set -ex - cd /root - apt update - apt install devscripts equivs -y - yes | mk-build-deps --install - debuild -us -uc -b - mkdir -p /output/ - mv ../*.deb /output/ - mv ./*.deb /output/ + compile_x86: + name: Create deb package (x86_86) + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v2 + - name: Run the build process with Docker + uses: addnab/docker-run-action@v3 + with: + image: debian:testing + options: -v ${{ github.workspace }}:/root -v /output:/output + run: | + set -ex + cd /root + apt update + apt install devscripts equivs -y + yes | mk-build-deps --install + debuild -us -uc -b + mkdir -p /output/ + mv ../*.deb /output/ + mv ./*.deb /output/ - - uses: "marvinpinto/action-automatic-releases@latest" - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "current" - prerelease: false - title: "Latest release" - files: | - /output/* + release: + needs: [compile_x86] + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v2 + - name: Create Release + uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "current" + prerelease: false + title: "Latest release" + files: | + /output/*