2023-10-25 21:48:02 +00:00
|
|
|
name: Gitea Actions Demo
|
|
|
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
2023-10-25 21:46:54 +00:00
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Explore-Gitea-Actions:
|
2023-10-25 21:48:02 +00:00
|
|
|
runs-on: autobuilder
|
|
|
|
container:
|
|
|
|
volumes:
|
|
|
|
- /home/builder/public/spark-extra/import:/import
|
2023-10-25 21:46:54 +00:00
|
|
|
steps:
|
2023-10-25 21:48:02 +00:00
|
|
|
- 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 }}."
|
2023-10-25 21:46:54 +00:00
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v3
|
2023-10-25 21:48:02 +00:00
|
|
|
- name: Link the workdir into /buildroot # for script compatability with the old builder.
|
2023-10-25 21:46:54 +00:00
|
|
|
run: |
|
2023-10-25 21:48:02 +00:00
|
|
|
ln -vfs ${{ gitea.workspace }} /buildroot
|
2023-10-25 21:46:54 +00:00
|
|
|
- name: Build the package
|
|
|
|
run: |
|
|
|
|
cd ${{ gitea.workspace }}
|
2023-10-25 21:48:02 +00:00
|
|
|
/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
|
2023-10-25 22:02:50 +00:00
|
|
|
run: cp -v ./*.pkg.tar.zst /import
|