Merge df1568896f8c7c12b4bcef722165bf7f79a50be0 into 129479b1b7345f0055016ab3aa42ae78a4ca2048

This commit is contained in:
David Yang 2025-03-01 02:07:15 +08:00 committed by GitHub
commit a5fad06e95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

35
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,35 @@
# .github/workflows/ci.yml
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get tag
id: tag
run: echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
- name: Checkout the current branch
run: |
echo "BRANCH=$(echo $GITHUB_REF | cut -d'/' -f 3)" >> $GITHUB_ENV
git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
git fetch --unshallow --tags
git tag
if [[ $(git rev-parse --abbrev-ref HEAD) == "master" ]]; then
echo "reattaching HEAD on master"
git symbolic-ref --short HEAD || git checkout -b ${GITHUB_ENV}-test $GITHUB_ENV
fi
sudo apt update -q
- name: Test make
run: |
make
make clean