Replace workflow add-path commands with echo to env file
This commit is contained in:
parent
598eb34ad5
commit
e96fd0f8af
2 changed files with 9 additions and 9 deletions
14
.github/workflows/codeql-analysis.yml
vendored
14
.github/workflows/codeql-analysis.yml
vendored
|
@ -34,30 +34,30 @@ jobs:
|
||||||
uses: github/codeql-action/init@v1
|
uses: github/codeql-action/init@v1
|
||||||
with:
|
with:
|
||||||
languages: ${{ matrix.language }}
|
languages: ${{ matrix.language }}
|
||||||
|
|
||||||
- name: Install arduino-cli
|
- name: Install arduino-cli
|
||||||
run:
|
run:
|
||||||
|
|
|
|
||||||
mkdir -p ~/.local/bin
|
mkdir -p ~/.local/bin
|
||||||
echo "::add-path::~/.local/bin"
|
echo "~/.local/bin" >> $GITHUB_PATH
|
||||||
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=~/.local/bin sh
|
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=~/.local/bin sh
|
||||||
|
|
||||||
- name: Install platform
|
- name: Install platform
|
||||||
run:
|
run:
|
||||||
|
|
|
|
||||||
arduino-cli core update-index
|
arduino-cli core update-index
|
||||||
arduino-cli core install arduino:avr
|
arduino-cli core install arduino:avr
|
||||||
|
|
||||||
- name: Static link
|
- name: Static link
|
||||||
run:
|
run:
|
||||||
|
|
|
|
||||||
# static link fix from https://github.com/github/securitylab/discussions/171
|
# static link fix from https://github.com/github/securitylab/discussions/171
|
||||||
for i in ~/.arduino*/packages/arduino/tools/avr-gcc/*/bin/*; do
|
for i in ~/.arduino*/packages/arduino/tools/avr-gcc/*/bin/*; do
|
||||||
mv "$i" "$i.real";
|
mv "$i" "$i.real";
|
||||||
printf '#!/bin/bash\nexec "'"$i"'.real" ${1+"$@"}\n' > "$i";
|
printf '#!/bin/bash\nexec "'"$i"'.real" ${1+"$@"}\n' > "$i";
|
||||||
chmod +x "$i";
|
chmod +x "$i";
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Build example
|
- name: Build example
|
||||||
run:
|
run:
|
||||||
arduino-cli compile --libraries /home/runner/work/RadioLib --fqbn arduino:avr:uno $PWD/examples/SX126x/SX126x_Transmit/SX126x_Transmit.ino --warnings=all
|
arduino-cli compile --libraries /home/runner/work/RadioLib --fqbn arduino:avr:uno $PWD/examples/SX126x/SX126x_Transmit/SX126x_Transmit.ino --warnings=all
|
||||||
|
|
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
|
@ -41,7 +41,7 @@ jobs:
|
||||||
run:
|
run:
|
||||||
|
|
|
|
||||||
mkdir -p ~/.local/bin
|
mkdir -p ~/.local/bin
|
||||||
echo "::add-path::~/.local/bin"
|
echo "~/.local/bin" >> $GITHUB_PATH
|
||||||
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=~/.local/bin sh
|
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=~/.local/bin sh
|
||||||
|
|
||||||
- name: Get platform name
|
- name: Get platform name
|
||||||
|
@ -90,7 +90,7 @@ jobs:
|
||||||
sudo apt-get install -y python3 python3-pip python3-setuptools
|
sudo apt-get install -y python3 python3-pip python3-setuptools
|
||||||
pip3 install wheel
|
pip3 install wheel
|
||||||
pip3 install --user adafruit-nrfutil
|
pip3 install --user adafruit-nrfutil
|
||||||
echo "::add-path::/home/runner/.local/bin"
|
echo "/home/runner/.local/bin" >> $GITHUB_PATH
|
||||||
echo "::set-output name=options:::softdevice=s132v6,debug=l0"
|
echo "::set-output name=options:::softdevice=s132v6,debug=l0"
|
||||||
echo "::set-output name=index-url::--additional-urls https://www.adafruit.com/package_adafruit_index.json"
|
echo "::set-output name=index-url::--additional-urls https://www.adafruit.com/package_adafruit_index.json"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue