Skip to content

Commit

Permalink
Update build-macos.yml, add package.json (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
earlephilhower authored Aug 27, 2024
1 parent 89c4fcd commit 1db3424
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
git clone https://github.com/raspberrypi/picotool.git
cd picotool
git checkout 2.0.0
export gitrev=$(git rev-parse --short HEAD)
export pioarch=darwin_x86_64
export piotup=x86_64-apple-darwin20.4
# Build!
mkdir build
Expand All @@ -52,7 +55,9 @@ jobs:
otool -L /tmp/picotool/picotool
# Create tarball
tar cvf ../../picotool.darwin-x86_64.tar -C /tmp picotool
echo -e '{\n "description": "picotool-utility",\n "name": "tool-picotool-rp2040-earlephilhower",\n "system": [ "'$pioarch'" ],\n "url": "https://github.com/earlephilhower/pico-quick-toolchain",\n "version": "5.120300.'$(date +%y%m%d)'"\n}' > /tmp/picotool/package.json
pushd /tmp; zip -9r /tmp/$piotup.picotool-$gitrev.$(date +%y%m%d).zip picotool; popd
tar cvf ../../picotool.darwin-x86_64.tar -C /tmp /tmp/$piotup.picotool-$gitrev.$(date +%y%m%d).zip
- name: Upload Picotool
uses: actions/upload-artifact@v4
Expand All @@ -68,6 +73,9 @@ jobs:
git clone https://github.com/raspberrypi/openocd.git
pushd openocd
git checkout sdk-2.0.0
export gitrev=$(git rev-parse --short HEAD)
export pioarch=darwin_x86_64
export piotup=x86_64-apple-darwin20.4
# Remove TEXI warning
grep -v raggedright doc/openocd.texi > p2
mv p2 doc/openocd.texi
Expand Down Expand Up @@ -96,7 +104,9 @@ jobs:
(cwd=$(pwd); cd /tmp/openocd/bin; bash $cwd/macos-relative-dylibs.sh)
otool -L /tmp/openocd/bin/openocd
tar cvf openocd.darwin-x86_64.tar -C /tmp openocd
echo -e '{\n "description": "picotool-utility",\n "name": "tool-openocd-rp2040-earlephilhower",\n "system": [ "'$pioarch'" ],\n "url": "https://github.com/earlephilhower/pico-quick-toolchain",\n "version": "5.120300.'$(date +%y%m%d)'"\n}' > /tmp/openocd/package.json
pushd /tmp; zip -9r /tmp/$piotup.openocd-$gitrev.$(date +%y%m%d).zip openocd; popd
tar cvf openocd.darwin-x86_64.tar -C /tmp /tmp/$piotup.openocd-$gitrev.$(date +%y%m%d).zip
- name: Upload OpenOCD
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 1db3424

Please sign in to comment.