Fix build name in CI

This commit is contained in:
Aoran Zeng 2023-09-14 21:31:40 +08:00
parent 01fef6b6bf
commit f8ed5820da
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -3,7 +3,7 @@
# License : GPLv3
# Authors : Aoran Zeng <ccmywish@qq.com>
# 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