[Toybox] GitHub Action Example
Eric Molitor
emolitor at molitor.org
Sat Jun 13 00:29:51 PDT 2020
Would aarch64 builds on Ubuntu and Alpine be useful? That will be slightly
more complex to setup but is possible.
> it seems like your setup is running on a cron-like timer? is there a way
> to say "on every push" instead?
>
> There are three build triggers in the configuration, cron, push on master
and pull request on master. As I forked the repo you only see changes to my
repo (emolitor/toybox) trigger builds and not landley/toybox.
[https://github.com/emolitor/toybox/blob/master/.github/workflows/toybox.yml
]
on:
schedule:
- cron: '0 2 * * *'
push:
branches: [ master ]
pull_request:
branches: [ master ]
> i'm assuming a clang-based build with `export ASAN=1` would be doable too?
> that would give us coverage of the other common compiler _and_ catch some
> memory issues before an aarch64 hwasan device does. (thanks to wfh i'm
> doing a lot less with aarch64 and a lot more with x86-64 right now.)
>
I just added a parallel ASAN build on Ubuntu using clang to test.
[https://github.com/emolitor/toybox/actions/runs/134098865]
--- a/.github/workflows/toybox.yml
+++ b/.github/workflows/toybox.yml
@@ -37,6 +37,20 @@ jobs:
- name: Test
run: make tests
+ Ubuntu-20_04-Clang-ASAN:
+ runs-on: ubuntu-20.04
+
+ steps:
+ - uses: actions/checkout at v2
+ - name: Setup
+ run: sudo apt-get install build-essential clang
+ - name: Configure
+ run: make defconfig
+ - name: Build
+ run: CC=clang ASAN=1 make
+ - name: Test
+ run: make tests
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20200613/d804ccc8/attachment.htm>
More information about the Toybox
mailing list