diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 50175c7..16b33ae 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -31,13 +31,13 @@ jobs: - name: Compile chsrc x64 run: | - mingw32-make.exe CI BUILD_NAME=chsrc-x64-windows + mingw32-make.exe CI CI_BUILD_NAME=chsrc-x64-windows - name: Compile chsrc x86 env: MSYSTEM: MINGW32 run: | - mingw32-make.exe CI BUILD_NAME=chsrc-x86-windows + mingw32-make.exe CI CI_BUILD_NAME=chsrc-x86-windows - name: List files run: ls *.exe diff --git a/Makefile b/Makefile index ae29e3b..54f9188 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ # License : GPLv3 # Authors : Aoran Zeng # Created on : <2023-08-28> -# Last modified : <2023-09-12> +# Last modified : <2023-09-14> # --------------------------------------------------------------- CFLAGS = # -Wall @@ -14,6 +14,8 @@ ifeq ($(OS), Windows_NT) endif TARGET = chsrc + +CI_BUILD_NAME = chsrc #======================= all: @@ -24,6 +26,9 @@ else endif @echo Compile done using \'$(CC)\' $(CFLAGS) +CI: all + @mv chsrc $(CI_BUILD_NAME) + test: $(TARGET) ./$(TARGET) list mirror ./$(TARGET) list target