QuickExam/.github/workflows/main.yml
zhangyuheng 8d9a0c9f4d
Some checks failed
C++ CI-CD / build (push) Failing after 14m7s
test cicd
2024-01-18 14:14:25 +08:00

36 lines
937 B
YAML

name: C++ CI-CD
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "🧺 Set up Environment"
run: |
sudo apt update && sudo apt install -y wget cmake bison flex git
- name: "🍵 Install third-party"
run: |
cd tools/scripts && ./InstallDep.sh
- name: "🏠 Build"
run: |
mkdir build && cd build && cmake .. && make -j
- name: "📦 Stage"
run: |
mkdir staging
cp bin/* staging
cp -r resource staging
- name: "🚀 Release"
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ env.RELEASE_VERSION }}"
prerelease: false
title: "Release ${{ env.RELEASE_VERSION }}"
files: |
staging/*