Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-pico
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-pico
Commits
77eae66c
Unverified
Commit
77eae66c
authored
May 22, 2021
by
Earle F. Philhower, III
Committed by
GitHub
May 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Win and Mac build to CI (#159)
parent
eb6750d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
73 additions
and
0 deletions
+73
-0
.github/workflows/pull-request.yml
.github/workflows/pull-request.yml
+71
-0
tests/common.sh
tests/common.sh
+2
-0
No files found.
.github/workflows/pull-request.yml
View file @
77eae66c
...
...
@@ -60,3 +60,74 @@ jobs:
cd ..
bash ./tests/build.sh
# Single build under Windows to ensure the Win toolchain is good.
build-windows
:
name
:
Windows
runs-on
:
windows-latest
steps
:
-
uses
:
actions/checkout@v2
with
:
submodules
:
true
-
uses
:
actions/setup-python@v2
with
:
python-version
:
'
3.x'
-
name
:
Cache Windows toolchain
id
:
cache-windows
uses
:
actions/cache@v2
with
:
path
:
./tools/dist
key
:
${{ runner.os }}-${{ hashFiles('package/package_pico_index.template.json', 'tests/common.sh') }}
-
name
:
Build Sketch
env
:
TRAVIS_BUILD_DIR
:
${{ github.workspace }}
TRAVIS_TAG
:
${{ github.ref }}
WINDOWS
:
1
BUILD_PARITY
:
custom
mod
:
500
rem
:
1
run
:
|
# Windows has python3 already installed, but it's called "python".
# Copy python.exe to the proper name so scripts "just work".
try { Get-Command python3 } catch { copy (get-command python).source (get-command python).source.Replace("python.exe", "python3.exe") }
cd pico-sdk
git submodule update --init
cd ../pico-extras
git submodule update --init
cd ..
bash ./tests/build.sh
# Single build under macOS to ensure the Mac toolchain is good.
build-mac
:
name
:
Mac
runs-on
:
macOS-latest
steps
:
-
uses
:
actions/checkout@v2
with
:
submodules
:
true
-
uses
:
actions/setup-python@v2
with
:
python-version
:
'
3.x'
-
name
:
Cache Mac toolchain
id
:
cache-mac
uses
:
actions/cache@v2
with
:
path
:
./tools/dist
key
:
${{ runner.os }}-${{ hashFiles('package/package_pico_index.template.json', 'tests/common.sh') }}
-
name
:
Build Sketch
env
:
TRAVIS_BUILD_DIR
:
${{ github.workspace }}
TRAVIS_TAG
:
${{ github.ref }}
MACOSX
:
1
BUILD_PARITY
:
custom
mod
:
500
rem
:
1
run
:
|
cd pico-sdk
git submodule update --init
cd ../pico-extras
git submodule update --init
cd ..
bash ./tests/build.sh
tests/common.sh
View file @
77eae66c
...
...
@@ -193,7 +193,9 @@ function install_ide()
mkdir
pico
cd
pico
if
[
"
$WINDOWS
"
=
"1"
]
;
then
rm
$core_path
/cores/rp2040/api
cp
-a
$core_path
rp2040
cp
-a
$core_path
/ArduinoCore-API/api rp2040/cores/rp2040/api
else
ln
-s
$core_path
rp2040
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment