From 3b5c7ff03993ab09125b155d1439b7aba3042b3f Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Thu, 2 May 2024 10:41:30 -0500 Subject: [PATCH] Update to github actions --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ .gitignore | 1 + .travis.yml | 28 ---------------------------- 3 files changed, 28 insertions(+), 28 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..2affac07 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +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 -j$(nproc) all-boards + - name: Rename release assets + run: | + mkdir dist + cp build/*/*.uf2 dist/ + cp build/*/*.bin dist/ + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: dist + path: dist + diff --git a/.gitignore b/.gitignore index e0e9abe9..9549955b 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ node_modules scripts/clean-ifaces/*.plist .vscode/c_cpp_properties.json TAGS +dist diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ab2837dc..00000000 --- a/.travis.yml +++ /dev/null @@ -1,28 +0,0 @@ -language: node_js -sudo: false -node_js: - - "5.7.0" -notifications: - email: - - yelm-eng@microsoft.com -addons: - apt: - packages: - - libc6-i386 - -node_js: - - "6" - -cache: - directories: - - $HOME/gcc-arm-none-eabi-9-2019-q4-major - -install: - - export GCC_DIR=$HOME/gcc-arm-none-eabi-9-2019-q4-major - - export GCC_ARCHIVE=$HOME/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 - - export GCC_URL=https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 - - if [ ! -e $GCC_DIR/bin/arm-none-eabi-g++ ]; then wget $GCC_URL -O $GCC_ARCHIVE; tar xfj $GCC_ARCHIVE -C $HOME; fi - - export PATH=$PATH:$GCC_DIR/bin - -script: - - make all-boards