Skip to content

Commit

Permalink
Merge branch 'dev' into Off=>Icon
Browse files Browse the repository at this point in the history
  • Loading branch information
discip authored Aug 1, 2023
2 parents e7174f2 + bd9c63f commit 4e88089
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 54 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
run: git config --global --add safe.directory /__w/IronOS/IronOS && git config --global safe.directory "$GITHUB_WORKSPACE"

- name: Build ${{ matrix.model }}
run: make -j$(nproc) model="${{ matrix.model }}" firmware-multi_compressed_European firmware-multi_compressed_Bulgarian+Russian+Serbian+Ukrainian firmware-multi_Chinese+Japanese
run: make -C source/ -j$(nproc) model="${{ matrix.model }}" firmware-multi_compressed_European firmware-multi_compressed_Bulgarian+Russian+Serbian+Ukrainian firmware-multi_Chinese+Japanese

- name: Copy license files
run: cp LICENSE scripts/LICENSE_RELEASE.md source/Hexfile/
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ fabric.properties
# Binaries
source/Hexfile/
source/Objects/
BUILDS/

# Autogenerated
source/Core/Gen/
Expand Down Expand Up @@ -214,4 +215,3 @@ Logo GUI/TS100 Logo Editor/TS100 Logo Editor/bin/

# Tests/linters/sanitizers
source/check-style.log

1 change: 0 additions & 1 deletion Env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ services:
dockerfile: scripts/IronOS.Dockerfile
command: /bin/sh
volumes:
- ./scripts/ci:/build/ci:Z
- ./:/build/ironos:Z
22 changes: 21 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ ifndef MKDOCS
MKDOCS:=mkdocs
endif

# build output related directories
ifdef OUT
OUT_DIR=$(OUT)
else
OUT_DIR=$(CURDIR)/BUILDS
endif
OUT_HEX=$(CURDIR)/source/Hexfile


### global static variables

Expand Down Expand Up @@ -105,7 +113,7 @@ docker-shell: docker-check $(DOCKER_DEPS)

# former build.sh
docker-build: docker-check $(DOCKER_DEPS)
$(DOCKER_CMD) /bin/bash /build/ci/buildAll.sh
$(DOCKER_CMD) make build-all

# delete container
docker-clean: docker-check
Expand Down Expand Up @@ -157,6 +165,17 @@ tests: test-md test-sh test-py test-ccpp
@echo "All tests & checks have been completed successfully."
@echo ""

# former scripts/ci/buildAll.sh - all in one to build all firmware & place the produced binaries into one output directory
build-all:
@mkdir -p $(OUT_DIR)
@chmod 0777 $(OUT_DIR)
cd source && bash ./build.sh
@echo "All Firmware built"
@cp -r $(OUT_HEX)/*.bin $(OUT_DIR)
@cp -r $(OUT_HEX)/*.hex $(OUT_DIR)
@cp -r $(OUT_HEX)/*.dfu $(OUT_DIR)
@echo "Resulting output directory: $(OUT_DIR)"

# pass-through target for Makefile inside source/ dir
%:
$(MAKE) -C source/ $@
Expand All @@ -166,6 +185,7 @@ clean-build:
$(MAKE) -C source/ clean-all
rm -Rf site
rm -Rf scripts/ci/artefacts
rm -Rf $(OUT_DIR)

# global clean-up target
clean-full: clean-build docker-clean
Expand Down
48 changes: 24 additions & 24 deletions Translations/translation_UK.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,16 @@
"message": "Cooldown\n"
},
"ProfilePreheatString": {
"message": "Preheat\n"
"message": "Попередній\nрозігрів"
},
"ProfileCooldownString": {
"message": "Cooldown\n"
"message": "Охолодження\n"
},
"DeviceFailedValidationWarning": {
"message": "Вірогідно ваш пристрій підробний!"
},
"TooHotToStartProfileWarning": {
"message": "Too hot to\nstart profile"
"message": "Занадто гараче для\nзміни профілів"
}
},
"characters": {
Expand Down Expand Up @@ -209,60 +209,60 @@
"description": "Cooldown at this rate at the end of profile mode (degrees per second)"
},
"ProfilePhases": {
"displayText": "Profile\nPhases",
"description": "Number of phases in profile mode"
"displayText": "Етапи\nпрофілів",
"description": "Кількість етапів в режимі профілів"
},
"ProfilePreheatTemp": {
"displayText": "Preheat\nTemp",
"description": "Preheat to this temperature at the start of profile mode"
"displayText": "Температура\nПоп.Розігріву",
"description": "Попередньо розігріти до цієї температури на початку режимку профілів"
},
"ProfilePreheatSpeed": {
"displayText": "Preheat\nSpeed",
"description": "Preheat at this rate (degrees per second)"
"displayText": "Швидкість\nПоп.Розігріву",
"description": "Розігрівати з такою швидкістю (градусів в секунду)"
},
"ProfilePhase1Temp": {
"displayText": "Phase 1\nTemp",
"description": "Target temperature for the end of this phase"
"displayText": "Етап 1\nТемпература",
"description": "Температура в кінці цього етапу"
},
"ProfilePhase1Duration": {
"displayText": "Phase 1\nDuration",
"description": "Target duration of this phase (seconds)"
"displayText": "Етап 1\nТривалість",
"description": "Тривалість цього етапу (секунд)"
},
"ProfilePhase2Temp": {
"displayText": "Phase 2\nTemp",
"displayText": "Етап 2\nТемпература",
"description": ""
},
"ProfilePhase2Duration": {
"displayText": "Phase 2\nDuration",
"displayText": "Етап 2\nТривалість",
"description": ""
},
"ProfilePhase3Temp": {
"displayText": "Phase 3\nTemp",
"displayText": "Етап 3\nТемпература",
"description": ""
},
"ProfilePhase3Duration": {
"displayText": "Phase 3\nDuration",
"displayText": "Етап 3\nТривалість",
"description": ""
},
"ProfilePhase4Temp": {
"displayText": "Phase 4\nTemp",
"displayText": "Етап 4\nТемпература",
"description": ""
},
"ProfilePhase4Duration": {
"displayText": "Phase 4\nDuration",
"displayText": "Етап 4\nТривалість",
"description": ""
},
"ProfilePhase5Temp": {
"displayText": "Phase 5\nTemp",
"displayText": "Етап 5\nТемпература",
"description": ""
},
"ProfilePhase5Duration": {
"displayText": "Phase 5\nDuration",
"displayText": "Етап 5\nТривалість",
"description": ""
},
"ProfileCooldownSpeed": {
"displayText": "Cooldown\nSpeed",
"description": "Cooldown at this rate at the end of profile mode (degrees per second)"
"displayText": "Швидкість\nОхолодження",
"description": "Швидкість охолодження в кінці режиму профілів (градусів в секунду)"
},
"MotionSensitivity": {
"displayText": "Чутливість\nсенсору руху",
Expand Down Expand Up @@ -334,7 +334,7 @@
},
"BluetoothLE": {
"displayText": "Bluetooth\n",
"description": "Enables BLE"
"description": "Увімкнути BLE"
},
"PowerLimit": {
"displayText": "Макс.\nпотуж.",
Expand Down
1 change: 0 additions & 1 deletion scripts/IronOS.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,3 @@ RUN python3 -m pip install ${PIP_PKGS}
RUN git config --global --add safe.directory /build/ironos

COPY . /build/ironos
COPY ./scripts/ci /build/ci
21 changes: 0 additions & 21 deletions scripts/ci/buildAll.sh

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 1 addition & 2 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ fi;
if [ -z "${cmd}" ] || [ "${cmd}" = "shell" ]; then
docker_cmd="run --rm builder"
elif [ "${cmd}" = "build" ]; then
docker_cmd="run --rm builder /bin/bash /build/ci/buildAll.sh"
docker_cmd="run --rm builder make build-all OUT=${OUT}"
elif [ "${cmd}" = "clean" ]; then
docker rmi ironos-builder:latest
exit "${?}"
Expand All @@ -211,4 +211,3 @@ echo -e "\t* type \"${0} clean\" to delete created container (but not cached dat
echo -e "\n====>>>> ${docker_bin} ${docker_file} ${docker_cmd}\n"
eval "${docker_bin} ${docker_file} ${docker_cmd}"
exit "${?}"

0 comments on commit 4e88089

Please sign in to comment.