mirror of https://github.com/ClassiCube/ClassiCube
workflow fixes
This commit is contained in:
parent
20890533d5
commit
7c9490116a
|
|
@ -17,3 +17,4 @@ runs:
|
||||||
with:
|
with:
|
||||||
name: ${{ inputs.DEST_NAME }}
|
name: ${{ inputs.DEST_NAME }}
|
||||||
path: ${{ inputs.SOURCE_FILE }}
|
path: ${{ inputs.SOURCE_FILE }}
|
||||||
|
if-no-files-found: error
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ jobs:
|
||||||
- uses: ./.github/actions/upload_build
|
- uses: ./.github/actions/upload_build
|
||||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||||
with:
|
with:
|
||||||
SOURCE_FILE: 'build-ps1/ClassiCube-PS1.elf'
|
SOURCE_FILE: 'build/ps1/ClassiCube-PS1.elf'
|
||||||
DEST_NAME: 'ClassiCube-PS1.elf'
|
DEST_NAME: 'ClassiCube-PS1.elf'
|
||||||
|
|
||||||
- uses: ./.github/actions/upload_build
|
- uses: ./.github/actions/upload_build
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,11 @@ jobs:
|
||||||
image: ijacquez/yaul:latest
|
image: ijacquez/yaul:latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- name: Install prerequisites
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y curl
|
||||||
|
|
||||||
- name: Compile Saturn build
|
- name: Compile Saturn build
|
||||||
id: compile
|
id: compile
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -34,7 +39,7 @@ jobs:
|
||||||
- uses: ./.github/actions/upload_build
|
- uses: ./.github/actions/upload_build
|
||||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||||
with:
|
with:
|
||||||
SOURCE_FILE: 'build-saturn/ClassiCube-saturn.elf'
|
SOURCE_FILE: 'build/saturn/ClassiCube-saturn.elf'
|
||||||
DEST_NAME: 'ClassiCube-saturn.elf'
|
DEST_NAME: 'ClassiCube-saturn.elf'
|
||||||
|
|
||||||
- uses: ./.github/actions/upload_build
|
- uses: ./.github/actions/upload_build
|
||||||
|
|
|
||||||
|
|
@ -90,10 +90,7 @@ clean:
|
||||||
$(BUILD_DIR)/$(TARGET).elf: $(SH_OBJS)
|
$(BUILD_DIR)/$(TARGET).elf: $(SH_OBJS)
|
||||||
$(SH_LD) $(foreach specs,$(SH_SPECS),-specs=$(specs)) $(SH_OBJS) $(SH_LDFLAGS) -o $@
|
$(SH_LD) $(foreach specs,$(SH_SPECS),-specs=$(specs)) $(SH_OBJS) $(SH_LDFLAGS) -o $@
|
||||||
|
|
||||||
$(TARGET).elf: $(BUILD_DIR)/$(TARGET).elf
|
$(BUILD_DIR)/$(TARGET).bin: $(BUILD_DIR)/$(TARGET).elf
|
||||||
cp $< $@
|
|
||||||
|
|
||||||
$(BUILD_DIR)/$(TARGET).bin: $(TARGET).elf
|
|
||||||
$(SH_OBJCOPY) -O binary $< $@
|
$(SH_OBJCOPY) -O binary $< $@
|
||||||
@[ -z "${SILENT}" ] && du -hs $@ | awk '{ print $$1; }' || true
|
@[ -z "${SILENT}" ] && du -hs $@ | awk '{ print $$1; }' || true
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue