mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-03-14 08:35:11 +08:00
Change make variable
This commit is contained in:
parent
52212db815
commit
47bc5bc81a
2
.github/workflows/linux-aarch64.yml
vendored
2
.github/workflows/linux-aarch64.yml
vendored
@ -24,7 +24,7 @@ jobs:
|
||||
pwd ; ls -al
|
||||
git clone https://github.com/RubyMetric/chsrc -b gh-build -q
|
||||
cd chsrc
|
||||
make CI CI_Build_Name=chsrc-aarch64-linux
|
||||
make CI CI_ARTIFACT_NAME=chsrc-aarch64-linux
|
||||
cp ./chsrc-aarch64-linux /artifacts
|
||||
|
||||
- name: Release
|
||||
|
2
.github/workflows/linux-armv7.yml
vendored
2
.github/workflows/linux-armv7.yml
vendored
@ -24,7 +24,7 @@ jobs:
|
||||
pwd ; ls -al
|
||||
git clone https://github.com/RubyMetric/chsrc -b gh-build -q
|
||||
cd chsrc
|
||||
make CI CI_Build_Name=chsrc-armv7-linux
|
||||
make CI CI_ARTIFACT_NAME=chsrc-armv7-linux
|
||||
cp ./chsrc-armv7-linux /artifacts
|
||||
|
||||
- name: Release
|
||||
|
2
.github/workflows/linux-riscv64.yml
vendored
2
.github/workflows/linux-riscv64.yml
vendored
@ -24,7 +24,7 @@ jobs:
|
||||
pwd ; ls -al
|
||||
git clone https://github.com/RubyMetric/chsrc -b gh-build -q
|
||||
cd chsrc
|
||||
make CI CI_Build_Name=chsrc-riscv64-linux
|
||||
make CI CI_ARTIFACT_NAME=chsrc-riscv64-linux
|
||||
cp ./chsrc-riscv64-linux /artifacts
|
||||
|
||||
- name: Release
|
||||
|
2
.github/workflows/linux-x64.yml
vendored
2
.github/workflows/linux-x64.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
||||
|
||||
- name: Compile chsrc x64
|
||||
run: |
|
||||
make CI CI_Build_Name=chsrc-x64-linux
|
||||
make CI CI_ARTIFACT_NAME=chsrc-x64-linux
|
||||
|
||||
- name: List files
|
||||
run: ls *-linux
|
||||
|
4
.github/workflows/macos.yml
vendored
4
.github/workflows/macos.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
||||
|
||||
- name: Compile chsrc for AArch64
|
||||
run: |
|
||||
make CI CI_Build_Name=chsrc-aarch64-macos
|
||||
make CI CI_ARTIFACT_NAME=chsrc-aarch64-macos
|
||||
|
||||
- name: List files
|
||||
run: ls *-macos
|
||||
@ -39,7 +39,7 @@ jobs:
|
||||
|
||||
- name: Compile chsrc for x64
|
||||
run: |
|
||||
make CI CI_Build_Name=chsrc-x64-macos
|
||||
make CI CI_ARTIFACT_NAME=chsrc-x64-macos
|
||||
|
||||
- name: List files
|
||||
run: ls *-macos
|
||||
|
4
.github/workflows/windows.yml
vendored
4
.github/workflows/windows.yml
vendored
@ -31,13 +31,13 @@ jobs:
|
||||
|
||||
- name: Compile chsrc x64
|
||||
run: |
|
||||
mingw32-make.exe CI CI_Build_Name=chsrc-x64-windows
|
||||
mingw32-make.exe CI CI_ARTIFACT_NAME=chsrc-x64-windows
|
||||
|
||||
- name: Compile chsrc x86
|
||||
env:
|
||||
MSYSTEM: MINGW32
|
||||
run: |
|
||||
mingw32-make.exe CI CI_Build_Name=chsrc-x86-windows
|
||||
mingw32-make.exe CI CI_ARTIFACT_NAME=chsrc-x86-windows
|
||||
|
||||
- name: List files
|
||||
run: ls *.exe
|
||||
|
13
Makefile
13
Makefile
@ -29,19 +29,20 @@ override WARN += -Wall -Wextra -Wno-unused-variable -Wno-unused-function -Wno-mi
|
||||
-Wno-missing-field-initializers -Wno-unused-parameter -Wno-sign-compare
|
||||
_C_Warning_Flags := $(WARN)
|
||||
|
||||
Target = chsrc
|
||||
Target_Name = chsrc
|
||||
|
||||
CI_Build_Name = chsrc
|
||||
# 由 GitHub Actions 在调用时修改
|
||||
CI_ARTIFACT_NAME = chsrc
|
||||
|
||||
DEBUGGER = gdb
|
||||
#=======================
|
||||
|
||||
all:
|
||||
@$(CC) src/chsrc-main.c $(CFLAGS) $(_C_Warning_Flags) -o $(Target)
|
||||
@$(CC) src/chsrc-main.c $(CFLAGS) $(_C_Warning_Flags) -o $(Target_Name)
|
||||
@echo; echo Compile done using \'$(CC)\' $(CFLAGS)
|
||||
|
||||
CI: all
|
||||
@mv $(Target) $(CI_Build_Name)
|
||||
@mv $(Target_Name) $(CI_ARTIFACT_NAME)
|
||||
|
||||
debug: CFLAGS += -g
|
||||
debug: all
|
||||
@ -58,10 +59,10 @@ test-fw:
|
||||
@./fw
|
||||
|
||||
# AUR package 安装时将执行此 target
|
||||
fastcheck: $(Target)
|
||||
fastcheck: $(Target_Name)
|
||||
@perl ./test/cli.pl fastcheck
|
||||
|
||||
test-cli: $(Target)
|
||||
test-cli: $(Target_Name)
|
||||
@perl ./test/cli.pl
|
||||
|
||||
clean:
|
||||
|
Loading…
x
Reference in New Issue
Block a user