From 99711dfe59cfdc3e2da77a33bfc54ba6ad339713 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Wed, 23 Dec 2020 10:15:40 +0100 Subject: [PATCH 1/3] Add deprecated-avr-comp folder to include list Fixes https://github.com/arduino/ArduinoCore-samd/issues/587 --- platform.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform.txt b/platform.txt index 4c52b75d2..fbdbbebab 100644 --- a/platform.txt +++ b/platform.txt @@ -87,13 +87,13 @@ build.usb_manufacturer="Unknown" # ---------------- ## Compile c files -recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.c.extra_flags} {build.extra_flags} {compiler.arm.cmsis.c.flags} "-I{build.core.path}/api/deprecated" {includes} "{source_file}" -o "{object_file}" +recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.c.extra_flags} {build.extra_flags} {compiler.arm.cmsis.c.flags} "-I{build.core.path}/api/deprecated" "-I{build.core.path}/api/deprecated-avr-comp" {includes} "{source_file}" -o "{object_file}" ## Compile c++ files -recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {compiler.arm.cmsis.c.flags} "-I{build.core.path}/api/deprecated" {includes} "{source_file}" -o "{object_file}" +recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {compiler.arm.cmsis.c.flags} "-I{build.core.path}/api/deprecated" "-I{build.core.path}/api/deprecated-avr-comp" {includes} "{source_file}" -o "{object_file}" ## Compile S files -recipe.S.o.pattern="{compiler.path}{compiler.S.cmd}" {compiler.S.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.S.extra_flags} {build.extra_flags} {compiler.arm.cmsis.c.flags} "-I{build.core.path}/api/deprecated" {includes} "{source_file}" -o "{object_file}" +recipe.S.o.pattern="{compiler.path}{compiler.S.cmd}" {compiler.S.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.S.extra_flags} {build.extra_flags} {compiler.arm.cmsis.c.flags} "-I{build.core.path}/api/deprecated" "-I{build.core.path}/api/deprecated-avr-comp" {includes} "{source_file}" -o "{object_file}" ## Create archives # archive_file_path is needed for backwards compatibility with IDE 1.6.5 or older, IDE 1.6.6 or newer overrides this value From 86cf01b1ee4159a3ef1c6990a5b10d4ae5adf980 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Wed, 23 Dec 2020 10:16:18 +0100 Subject: [PATCH 2/3] Add AceTime to compile-examples github action --- .github/workflows/compile-examples.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 408f61282..3eed403eb 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -247,6 +247,7 @@ jobs: - name: LoRa - name: MKRWAN - name: WiFiNINA + - name: AceTime - source-url: https://github.com/vidor-libraries/VidorPeripherals.git platforms: | # Use Board Manager to install the latest release of Arduino SAMD Boards to get the toolchain From 245da70943472c2258f684251e1bb90487afe148 Mon Sep 17 00:00:00 2001 From: per1234 Date: Wed, 23 Dec 2020 07:26:31 -0800 Subject: [PATCH 3/3] Configure CI workflow to compile AceTime library example This change causes the "Compile Examples" CI workflow to compile AceTime library's "HelloDateTime" example sketch for every board in the job matrix. --- .github/workflows/compile-examples.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 3eed403eb..3b79fea1a 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -53,6 +53,7 @@ jobs: - ~/Arduino/libraries/MFRC522/examples/rfid_read_personal_data - ~/Arduino/libraries/MFRC522/examples/rfid_write_personal_data - ~/Arduino/libraries/WiFi101/examples + - ~/Arduino/libraries/AceTime/examples/HelloDateTime strategy: fail-fast: false