修改一些构建系统的小细节 #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build with make | |
run: make --directory="./source/" build_host_description="${CI_HOST_INFO} ID:${GITHUB_RUN_ID} for ${GITHUB_REF}" | |
- name: Upload executable file | |
uses: actions/upload-artifact@v4 | |
env: | |
CI_HOST_INFO: GitHub Build CI | |
with: | |
name: i18nglish-linux | |
path: ./source/i18nglish.out | |
if-no-files-found: error | |
retention-days: 1 |