上传文件至 .github/workflows
Some checks failed
backup to gitlab / backup-to-gitlabwh (push) Failing after 31s
Build and Package Golang / build (push) Waiting to run

This commit is contained in:
2024-12-02 09:33:11 +08:00
parent 27ea592e6c
commit 194ea1fc1c

37
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,37 @@
name: Build and Package Golang
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y debhelper dh-golang build-essential
- name: Build Golang
run: |
cd src/src
./make.bash
- name: Package into .deb
run: |
dpkg-buildpackage -us -uc
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: golang-package
path: ../*.deb