2023-11-16 12:04:05 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: Build
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- custom
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Build & Upload
|
|
|
|
image: ubuntu:22.04
|
|
|
|
commands:
|
2023-11-16 12:18:54 +00:00
|
|
|
- sed -i 's@//.*archive.ubuntu.com@//mirror-cdn.xtom.com@g' /etc/apt/sources.list &&
|
|
|
|
sed -i 's@//security.ubuntu.com@//mirror-cdn.xtom.com@g' /etc/apt/sources.list
|
|
|
|
- apt update &&
|
2023-11-16 13:24:31 +00:00
|
|
|
apt install -y curl bzip2 git make gcc g++ libgmp-dev libmpfr-dev libmpc-dev gcc-multilib
|
2023-11-16 12:04:05 +00:00
|
|
|
- bash build.sh
|
|
|
|
environment:
|
|
|
|
GITEA_ENDPOINT: https://git.m.ac
|
|
|
|
GITEA_USER: baoshuo
|
|
|
|
GITEA_TOKEN:
|
|
|
|
from_secret: GITEA_TOKEN
|