Skip to content

Commit

Permalink
Update to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jepler committed May 2, 2024
1 parent d728aa1 commit 5b5bac6
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 33 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build CI

on:
push:
pull_request:
release:
types: [published]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Set up repository
uses: actions/checkout@v4
with:
submodules: false
show-progress: false
- name: Set up compiler
uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
# When changing this update what Windows grabs too!
release: '13.2.Rel1'
- name: Build
run: make submodules && make -j$(nproc) all-boards && make drop-pkg
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: build/uf2-samdx1-*.zip

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ node_modules
scripts/clean-ifaces/*.plist
.vscode/c_cpp_properties.json
TAGS
dist
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ SELF_EXECUTABLE_INO=$(BUILD_PATH)/update-$(NAME).ino

SUBMODULES = lib/uf2/README.md

all: $(SUBMODULES) dirs $(EXECUTABLE) $(SELF_EXECUTABLE)
all: submodules dirs $(EXECUTABLE) $(SELF_EXECUTABLE)
submodules: $(SUBMODULES)

r: run
b: burn
Expand Down Expand Up @@ -218,10 +219,10 @@ ifeq ($(CHIP_FAMILY),samd21)
endif

drop-pkg:
mv build/drop build/uf2-samd21-$(UF2_VERSION_BASE)
cp bin-README.md build/uf2-samd21-$(UF2_VERSION_BASE)/README.md
cd build; 7z a uf2-samd21-$(UF2_VERSION_BASE).zip uf2-samd21-$(UF2_VERSION_BASE)
rm -rf build/uf2-samd21-$(UF2_VERSION_BASE)
mv build/drop build/uf2-samdx1-$(UF2_VERSION_BASE)
cp bin-README.md build/uf2-samdx1-$(UF2_VERSION_BASE)/README.md
cd build; 7z a uf2-samdx1-$(UF2_VERSION_BASE).zip uf2-samdx1-$(UF2_VERSION_BASE)
rm -rf build/uf2-samdx1-$(UF2_VERSION_BASE)

all-boards:
for f in `cd boards; ls` ; do "$(MAKE)" BOARD=$$f drop-board || break -1; done
Expand Down

0 comments on commit 5b5bac6

Please sign in to comment.