1
0
mirror of https://github.com/renbaoshuo/s2oj-gcc.git synced 2024-11-08 12:18:42 +00:00
s2oj-gcc/.drone.yml
Baoshuo 2da0c1bf83
Some checks failed
continuous-integration/drone/push Build is failing
fix: ci
2023-11-16 20:18:54 +08:00

25 lines
597 B
YAML

---
kind: pipeline
type: docker
name: Build
trigger:
event:
- push
- custom
steps:
- name: Build & Upload
image: ubuntu:22.04
commands:
- 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 &&
apt install -y git make gcc libgmp-dev libmpfr-dev libmpc-dev gcc-multilib
- bash build.sh
environment:
GITEA_ENDPOINT: https://git.m.ac
GITEA_USER: baoshuo
GITEA_TOKEN:
from_secret: GITEA_TOKEN