From 740afc15940f639d7e94de7e2fd6f8369afa0a86 Mon Sep 17 00:00:00 2001 From: fbt Date: Thu, 26 Oct 2023 00:38:03 +0000 Subject: [PATCH] Actions. Signed-off-by: fbt --- .gitea/workflows/build-package.yaml | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitea/workflows/build-package.yaml diff --git a/.gitea/workflows/build-package.yaml b/.gitea/workflows/build-package.yaml new file mode 100644 index 0000000..94e32ad --- /dev/null +++ b/.gitea/workflows/build-package.yaml @@ -0,0 +1,32 @@ +name: Package builder +run-name: ${{ gitea.actor }} is building ${{ gitea.repo }} +on: [push] + +jobs: + BuildPackage: + runs-on: autobuilder + container: + volumes: + - /home/builder/public/spark-extra/import:/import + steps: + - name: Show job info + run: | + echo "The job was automatically triggered by a ${{ gitea.event_name }} event." + echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!" + echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." + - name: Check out repository code + uses: actions/checkout@v3 + - name: Link the workdir into /buildroot # for script compatability with the old builder. + run: | + ln -vfs ${{ gitea.workspace }} /buildroot + - name: Build the package + run: | + cd ${{ gitea.workspace }} + /build -s --noconfirm +# - name: Upload artifacts +# uses: actions/upload-artifact@v3 +# with: +# name: package +# path: ./*.pkg.tar.zst + - name: Put the packages into the import dir + run: cp -v ./*.pkg.tar.zst /import