Skip to content

Commit

Permalink
修改一些构建系统的小细节
Browse files Browse the repository at this point in the history
  • Loading branch information
SourLemonJuice committed Jun 15, 2024
1 parent e327a90 commit 266edaf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ on:
pull_request:
branches: [ "main" ]

env:
CI_HOST_INFO: GitHub Build CI

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -19,6 +16,8 @@ jobs:
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
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ Maybe I'll put them to *main.c* at later.

> Todo list is for myself, not for showing off. The history todo only needs store in git history.
- Unit test(only for core processor)
- Improve the way to handle CLI flags

## Code style
Expand Down
2 changes: 1 addition & 1 deletion source/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ source_files = main.c i7h_processor.c
executable_name = i18nglish.out

# About git repo info
git_commit_info = $(shell git describe --abbrev=40 --dirty --always --long)
git_commit_info = $(shell git describe --abbrev=40 --dirty --tags --always --long)
# Add more build info(remote CI or just a local PC)
build_host_description = Not explicit declared

Expand Down
7 changes: 7 additions & 0 deletions source/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@
#endif

/* Self define */
#define APP_VERSION_RELEASE_BUILD false
// release version
#if APP_VERSION_RELEASE_BUILD
#define APP_VERSION_STRING "ver-1.0"
#else
#define APP_VERSION_STRING "Development"
#endif

/*
TODO I'm tired...
This size use for some input string preprocessor, like fscanf() or deletePunctuations()
Expand Down

0 comments on commit 266edaf

Please sign in to comment.