It integrates better than Travis. Still run both for now to compare.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
--- /dev/null
+# GitHub actions workflow.
+# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
+
+name: Build+Test CI
+
+on:
+ push:
+ branches: [master]
+ tags: [v*]
+ pull_request:
+ types: [opened]
+ branches: [master]
+
+jobs:
+ build-test:
+ strategy:
+ matrix:
+ os: [ubuntu-latest]
+ cc: [gcc]
+ runs-on: ${{ matrix.os }}
+ env:
+ CC: ${{ matrix.cc }}
+ steps:
+ - name: Checkout elf2flt
+ uses: actions/checkout@v2
+ with:
+ path: elf2flt
+ - name: Checkout prebuilt binutils
+ uses: actions/checkout@v2
+ with:
+ repository: uclinux-dev/prebuilts-binutils-libs
+ path: prebuilts-binutils-libs
+ - run: cd elf2flt && ./travis/main.sh
Makefile
# our generated files
+/build/
/elf2flt
/elf2flt.ld
/flthdr
}
main() {
- v --fold="git_clone_binutils" \
- git clone --depth=1 https://github.com/uclinux-dev/prebuilts-binutils-libs ../prebuilts-binutils-libs
+ if [[ ! -d ../prebuilts-binutils-libs ]] ; then
+ v --fold="git_clone_binutils" \
+ git clone --depth=1 https://github.com/uclinux-dev/prebuilts-binutils-libs ../prebuilts-binutils-libs
+ fi
local a b
for a in "${ARCHES[@]}" ; do