Skip to content

CI: vcpkg update to b7dba7f9aad09a56900f21cd78cfda1258e54e38 #116

CI: vcpkg update to b7dba7f9aad09a56900f21cd78cfda1258e54e38

CI: vcpkg update to b7dba7f9aad09a56900f21cd78cfda1258e54e38 #116

Workflow file for this run

# Author: Kang Lin<kl222@126.com>
name: build
env:
artifact_path: artifact_path
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FaceRecognizer_VERSION: v0.0.4
on:
push:
pull_request:
jobs:
ubuntu:
uses: ./.github/workflows/ubuntu.yml
msvc:
uses: ./.github/workflows/msvc.yml
mingw:
uses: ./.github/workflows/mingw.yml
macos:
uses: ./.github/workflows/macos.yml
android:
uses: ./.github/workflows/android.yml
secrets: inherit
deploy:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
needs: [ubuntu, msvc, macos, mingw]
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
submodules: false
- name: Download ubuntu
uses: actions/download-artifact@v3
with:
name: ${{ needs.ubuntu.outputs.name }}
path: ${{ env.artifact_path }}
- name: Download msvc
uses: actions/download-artifact@v3
with:
name: ${{ needs.msvc.outputs.name }}
path: ${{ env.artifact_path }}
- name: Download mingw
uses: actions/download-artifact@v3
with:
name: ${{ needs.mingw.outputs.name }}
path: ${{ env.artifact_path }}
- name: Download macos
uses: actions/download-artifact@v3
with:
name: ${{ needs.macos.outputs.name }}
path: ${{ env.artifact_path }}
- name: Make Note.md file
run: |
echo "[:cn: 修改日志](ChangeLog_zh_CN.md) [:us: Change log](ChangeLog.md)" > NoteFile
cd ${{ env.artifact_path }}
echo "[:cn: 修改日志](https://github.com/KangLin/FaceRecognizer/blob/${{env.FaceRecognizer_VERSION}}/ChangeLog_zh_CN.md)" > ${{github.workspace}}/Note.md
echo "[:us: Change log](https://github.com/KangLin/FaceRecognizer/blob/${{env.FaceRecognizer_VERSION}}/ChangeLog.md)" >> ${{github.workspace}}/Note.md
echo "" >> ${{github.workspace}}/Note.md
echo "文件签名:" >> ${{github.workspace}}/Note.md
for file in *
do
echo $file
if [ -f $file ] && [ "${file##*.}" != "xml" ]; then
md5sum $file > $file.md5sum
cat $file.md5sum >> ${{github.workspace}}/Note.md
fi
done
- name: Upload To Github Release
run: |
gh release create ${{ github.ref_name }} --title ${{ github.ref_name }} --notes-file ${{github.workspace}}/Note.md
gh release upload ${{ github.ref_name }} ${{github.workspace}}/${{ env.artifact_path }}/* ${{github.workspace}}/Note.md