mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-22 02:45:56 +08:00
33 lines
779 B
YAML
33 lines
779 B
YAML
kind: pipeline
|
|
type: exec
|
|
name: shell
|
|
|
|
concurrency:
|
|
limit: 1
|
|
|
|
platform:
|
|
os: windows
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: build
|
|
commands:
|
|
- cd ..
|
|
- git clone https://gitee.com/openLuat/LuatOS.git
|
|
- cd src
|
|
- $env:PROJECT_NAME="luatos"
|
|
- $env:ROOT_PATH="$(Get-Location)/"
|
|
- $env:XMAKE_GLOBALDIR="C:/Users/14917/Desktop"
|
|
- xmake; if($?){echo success}else{echo fail; exit -1}
|
|
|
|
- name: notify
|
|
when:
|
|
status:
|
|
- failure
|
|
environment:
|
|
token:
|
|
from_secret: github_token
|
|
commands:
|
|
- 'curl.exe -X POST -H "Accept: application/vnd.github.v3+json" -H "Content-Type: application/json" https://api.github.com/repos/openLuat/LuatOS/dispatches -H "Authorization: token $env:token " -d "{`\`"event_type`\`": `\`"webhook_air780ci_notify`\`"}"'
|
|
|