@@ -24,10 +24,24 @@ jobs:
24
24
os : [ ubuntu-latest, macos-latest, windows-latest ]
25
25
26
26
steps :
27
+ - name : Checkout
28
+ uses : actions/checkout@v2
29
+
30
+ # Node 14 matches the version of Node used by VS Code when this was
31
+ # written, but it should be updated when VS Code updates its Node version.
32
+ # Node needs to be installed before OS-specific setup so that we can run
33
+ # the hash verification script.
34
+ - name : Use Node 14.x
35
+ uses : actions/setup-node@v2
36
+ with :
37
+ node-version : 14.x
38
+
27
39
- name : Windows setup
28
40
if : ${{ matrix.os == 'windows-latest' }}
29
41
run : |
30
42
curl -LO https://downloads.arduino.cc/arduino-1.8.19-windows.zip
43
+ node build/checkHash.js arduino-1.8.19-windows.zip `
44
+ c704a821089eab2588f1deae775916219b1517febd1dd574ff29958dca873945
31
45
7z x arduino-1.8.19-windows.zip -o"$Env:TEMP\arduino-ide"
32
46
echo "$Env:TEMP\arduino-ide\arduino-1.8.19" | Out-File -FilePath $env:GITHUB_PATH -Append
33
47
- name : Linux setup
36
50
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0
37
51
sleep 3
38
52
wget https://downloads.arduino.cc/arduino-1.8.19-linux64.tar.xz -P /home/$USER
53
+ node build/checkHash.js /home/$USER/arduino-1.8.19-linux64.tar.xz \
54
+ eb68bddc1d1c0120be2fca1350a03ee34531cf37f51847b21210b6e70545bc9b
39
55
tar -xvf /home/$USER/arduino-1.8.19-linux64.tar.xz -C /home/$USER/
40
56
sudo ln -s /home/$USER/arduino-1.8.19/arduino /usr/bin/arduino
41
57
sudo apt-get update
46
62
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
47
63
brew install arduino --cask
48
64
49
- - name : Checkout
50
- uses : actions/checkout@v2
51
-
52
- # Node 14 matches the version of Node used by VS Code when this was
53
- # written, but it should be updated when VS Code updates its Node version.
54
- - name : Use Node 14.x
55
- uses : actions/setup-node@v2
56
- with :
57
- node-version : 14.x
58
65
# Windows agents already have gulp installed.
59
66
- name : Install gulp
60
67
if : ${{ matrix.os != 'windows-latest' }}
0 commit comments