From da0fd7047df10f250edbe85dcde4a1f8e183934b Mon Sep 17 00:00:00 2001 From: aliriza Date: Thu, 5 Jan 2023 09:21:31 +0000 Subject: [PATCH] github actions --- .github/workflows/blank.yml | 42 +++++++++++++++++++++++++++++++++++++ dev/libs/gmp/ympbuild | 3 ++- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/blank.yml diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml new file mode 100644 index 00000000..526d0b57 --- /dev/null +++ b/.github/workflows/blank.yml @@ -0,0 +1,42 @@ +name: CI + +on: + push: + branches: [ master ] + + workflow_dispatch: + +jobs: + compile: + name: Update source packages + 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: registry.gitlab.com/sulix/devel/assets/docker-images + options: -v ${{ github.workspace }}:/root -v /output:/root/output + run: | + set -ex + cd /root + ymp repo --update + ymp it bash --no-emerge + find -type f | grep ympbuild | sort -V | while read line ; do + cd $(dirname $line) + ymp build --no-binary --ignore-dependency --no-processbar . + mv *.ymp /root/output + cd /root + done + ymp repo --index output --name=main + + - uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "current" + prerelease: false + title: "Latest release" + files: | + /output/* + diff --git a/dev/libs/gmp/ympbuild b/dev/libs/gmp/ympbuild index f24220d8..895d2771 100644 --- a/dev/libs/gmp/ympbuild +++ b/dev/libs/gmp/ympbuild @@ -19,7 +19,8 @@ cd $name-$version setup(){ ./configure --prefix=/usr \ --libdir=/usr/lib64 \ - $(use_opt cxx --enable-cxx --disable-cxx) + $(use_opt cxx --enable-cxx --disable-cxx) \ + --enable-fat } build(){