Files
golang-1.22/.github/workflows/main.yml
odatacc 02848ab06f
Some checks failed
Build and Package Golang / build (push) Failing after 2m34s
上传文件至 .github/workflows
2024-12-02 10:02:49 +08:00

41 lines
879 B
YAML

name: Build and Package Golang
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
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 wget
wget https://go.dev/dl/go1.22.6.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.22.6.linux-amd64.tar.gz
- name: Build Golang
run: |
export GOROOT_BOOTSTRAP=/usr/local/go
cd 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