1
0
mirror of https://github.com/renbaoshuo/s2oj-gcc.git synced 2024-09-16 18:35:20 +00:00
s2oj-gcc/.drone.yml
Baoshuo 883a251310
Some checks reported errors
continuous-integration/drone/push Build was killed
fix: ci
2023-11-16 21:29:08 +08:00

25 lines
617 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 curl flex bzip2 git make gcc g++ 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