-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
👷Migrate to github actions #678
base: develop-pros-3
Are you sure you want to change the base?
Changes from all commits
f6950ba
516eaba
09f46bc
774eb31
a648ba6
ae6123a
45de18f
e96ee10
3f928ec
34aa38b
3187b7c
52cbc58
ffd35c3
ace7549
047a035
dc2311b
34147a1
900a68c
e26da23
27ae5a0
f9f17b4
437060c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,67 @@ | ||||||||
name: Build and Publish | ||||||||
|
||||||||
on: | ||||||||
workflow_dispatch: | ||||||||
push: | ||||||||
branches: | ||||||||
- '*' | ||||||||
|
||||||||
jobs: | ||||||||
build_template: | ||||||||
runs-on: ubuntu-latest | ||||||||
|
||||||||
env: | ||||||||
TOOLCHAIN_UPDATE: 10.3-2021.10 | ||||||||
|
||||||||
steps: | ||||||||
|
||||||||
- name: Install SSH key | ||||||||
uses: webfactory/[email protected] | ||||||||
with: | ||||||||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||||||||
- name: Checkout code | ||||||||
uses: actions/checkout@v2 | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
with: | ||||||||
repository: purduesigbots/pros | ||||||||
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||||||||
|
||||||||
- name: Retrieve gcc-arm-embedded from cache | ||||||||
id: cache-gcc | ||||||||
uses: actions/cache@v4 | ||||||||
with: | ||||||||
path: | ||||||||
~/gcc-arm-none-eabi-${{env.TOOLCHAIN_UPDATE}} | ||||||||
key: | ||||||||
gcc-arm-none-eabi-${{env.TOOLCHAIN_UPDATE}} | ||||||||
|
||||||||
- name: Install gcc-arm-embedded | ||||||||
if: steps.cache-gcc.outputs.cache-hit != 'true' | ||||||||
run: | | ||||||||
curl -LSso toolchain.tar.bz2 "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${TOOLCHAIN_UPDATE}/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}-x86_64-linux.tar.bz2" | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
tar -xjvf toolchain.tar.bz2 | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
- name: Add gcc-arm-embedded to path | ||||||||
run: echo "$(pwd)/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}/bin" >> $GITHUB_PATH | ||||||||
|
||||||||
- name: Set up Python | ||||||||
uses: actions/setup-python@v2 | ||||||||
with: | ||||||||
python-version: '3.9' | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
- name: Install CLI | ||||||||
run: | | ||||||||
pip install pros-cli | ||||||||
|
||||||||
- name: Build template | ||||||||
run: | | ||||||||
git submodule init | ||||||||
git submodule update | ||||||||
make template | ||||||||
mkdir -p artifacts | ||||||||
cp template/*.zip artifacts | ||||||||
|
||||||||
- name: Publish artifacts | ||||||||
uses: actions/upload-artifact@v4 | ||||||||
with: | ||||||||
path: artifacts/kernel@*.zip | ||||||||
compression-level: 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PROS uses v13.3rel1 since #703.