aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-11-05 15:54:45 -0700
committerSelene ToyKeeper2023-11-05 15:54:45 -0700
commit76fd7e313f2cab83c879cbf8a09cddc6585d3a76 (patch)
tree8a01a3265231b1d3470374e0ef1b9214f2405fb9 /.github/workflows
parentFixes syntax errors when USE_MANUAL_MEMORY is undefined. (diff)
parentMerge branch 'gretel-actions' into trunk (diff)
downloadanduril-76fd7e313f2cab83c879cbf8a09cddc6585d3a76.tar.gz
anduril-76fd7e313f2cab83c879cbf8a09cddc6585d3a76.tar.bz2
anduril-76fd7e313f2cab83c879cbf8a09cddc6585d3a76.zip
Merge branch 'trunk' into DurvalMenezes-undef_USE_MANUAL_MEMORY_fix
* trunk: removed test branch from action triggers (the action works and seems ready to merge) test: is apt-get any faster than apt? github actions: cache the Atmel DFP files between runs fixed intentional error, because CI build-fail test worked correctly help CI detect build failures initial test to fix branch names and see if actions work make clean: don't remove files in arch/dfp/ docs: added info on contributing, fixed minor formatting issues basic compile workflow publishing artifacts to test
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/compile.yml49
1 files changed, 49 insertions, 0 deletions
diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml
new file mode 100644
index 0000000..fabcf31
--- /dev/null
+++ b/.github/workflows/compile.yml
@@ -0,0 +1,49 @@
+name: build all
+
+on:
+ push:
+ branches: [ "trunk" ]
+ pull_request:
+ branches: [ "trunk" ]
+
+jobs:
+ compile:
+ runs-on: ubuntu-latest
+
+ steps:
+
+ - name: Checkout
+ uses: actions/checkout@master
+
+ - name: Requirements
+ run: |
+ sudo apt-get -qqy update
+ sudo apt-get -qqy install avr-libc binutils-avr gcc-avr unzip wget
+
+ - name: Cache Atmel DFPs
+ id: cache-dfp
+ uses: actions/cache@v3
+ env:
+ cache-name: cache-dfp-files
+ with:
+ path: arch/dfp
+ # new cache whenever the dfp-install script changes
+ key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('bin/dfp-install.sh') }}
+
+ - name: Install Atmel DFPs
+ if: steps.cache-dfp.outputs.cache-hit != 'true'
+ run: |
+ ./make dfp
+
+ - name: Compile All
+ run: |
+ ./make
+ echo "ARTIFACT_NAME=${GITHUB_WORKFLOW}-${GITHUB_REF_NAME}-$(git rev-parse --short ${GITHUB_SHA})-${GITHUB_RUN_NUMBER}" >> "${GITHUB_ENV}"
+
+ - name: Store Artifacts
+ uses: actions/upload-artifact@v3
+ with:
+ name: ${{ env.ARTIFACT_NAME }}
+ if-no-files-found: error
+ path: |
+ hex/*.hex