Skip to content

Commit e478202

Browse files
authored
Merge pull request #24 from ianfixes/2023-01-23_v1.5.0
Use v1.5.0
2 parents 4669cc0 + ae62133 commit e478202

File tree

5 files changed

+38
-7
lines changed

5 files changed

+38
-7
lines changed

.github/workflows/docker_build.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# via https://docs.github.com/en/free-pro-team@latest/actions/guides/publishing-docker-images
2+
# and https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#example-using-multiple-events-with-activity-types-or-configuration
3+
name: Build Docker image
4+
on: [push, pull_request]
5+
6+
jobs:
7+
just_build:
8+
name: Verify the image can build
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Check out the repo
12+
uses: actions/checkout@v3
13+
- name: Verify Docker build
14+
uses: docker/build-push-action@v3
15+
with:
16+
context: .
17+
push: false

.github/workflows/docker_push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Check out the repo
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v3
1717
- name: Push to GitHub Packages
1818
uses: docker/build-push-action@v1
1919
with:

.github/workflows/hadolint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
hadolint:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v3
1111
- uses: reviewdog/action-hadolint@v1
1212
with:
1313
github_token: ${{ secrets.github_token }}

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99
### Added
10+
- ~~Pre-installation of platforms declared in `default.yml`~~
1011

1112
### Changed
13+
- Now uses `arduino_ci` [version `1.5.0`](https://github.com/Arduino-CI/arduino_ci/blob/master/CHANGELOG.md#150---2023-01-17)
1214

1315
### Deprecated
1416

@@ -19,7 +21,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1921
### Security
2022

2123

22-
## [Unreleased]
24+
## [0.1.3] - 2013-01-13
2325
### Changed
2426
- Now uses `arduino_ci` [version `1.3.0`](https://github.com/Arduino-CI/arduino_ci/blob/master/CHANGELOG.md#130---2021-01-13)
2527

Dockerfile

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ ARG BUILD_VERSION
88
# Values we set in more than one place in this file
99
ARG ARDUINO_CI_ACTION_REPO="https://github.com/ArduinoCI/action"
1010
ARG ARDUINO_CI_MAINTAINER="Arduino Continuous Integration <arduino.continuous.integration@gmail.com>"
11-
ARG ARDUINO_CI_GITREPO="https://github.com/ArduinoCI/arduino_ci.git"
12-
ARG ARDUINO_CI_GITREF="tag: 'v1.3.0'"
11+
ARG ARDUINO_CI_GITREPO="https://github.com/Arduino-CI/arduino_ci.git"
12+
ARG ARDUINO_CI_GITREF="tag: 'v1.5.0'"
1313
#ARG ARDUINO_CI_GITREPO="https://github.com/ianfixes/arduino_ci.git"
1414
#ARG ARDUINO_CI_GITREF="branch: '2021-01-07_beta'"
1515

@@ -45,10 +45,10 @@ RUN true \
4545
curl \
4646
g++ \
4747
time \
48-
python \
49-
python-pip \
48+
jq \
5049
python3 \
5150
python3-pip \
51+
python3-yaml \
5252
&& apt-get clean \
5353
&& rm -rf /var/lib/apt/lists/* \
5454
&& pip install pyserial \
@@ -73,5 +73,17 @@ RUN curl -fsSL "https://raw.githubusercontent.com/arduino/arduino-cli/master/ins
7373
&& echo "Now running arduino ensure_arduino_installation.rb" \
7474
&& bundle exec time /action/bundle/ruby/2.6.0/bin/ensure_arduino_installation.rb
7575

76+
# # Install common platforms by converting YAML to JSON and generating installation commands to run
77+
# #
78+
# # Although it seems wasteful to pull in python dependencies for just this, remember that (some) arduino
79+
# # platforms themselves require python to be available on the host, so we are taking advantage of a
80+
# # package that is already required.
81+
# RUN true \
82+
# && python3 -c 'import sys, yaml, json; json.dump(yaml.load(sys.stdin), sys.stdout)' < $(bundle show arduino_ci)/misc/default.yml \
83+
# | jq -r '.packages | to_entries[] \
84+
# | "arduino-cli core install \(.key) --additional-urls \(.value.url)"' \
85+
# | sh
86+
87+
7688
# Just like that
7789
ENTRYPOINT ["bundle", "exec", "/action/bundle/ruby/2.6.0/bin/arduino_ci.rb"]

0 commit comments

Comments
 (0)