添加更多构建时的版本信息,包括对CI配置的修改 #2
Workflow file for this run
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" ] | |
env: | |
CI_HOST_INFO: GitHub Build CI | |
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 | |
with: | |
name: i18nglish-linux | |
path: ./source/i18nglish.out | |
if-no-files-found: error | |
retention-days: 1 |