From a9009e091bb14a67d0f8111820e6c4672decb8c6 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 13 May 2020 07:14:04 -0400 Subject: [PATCH] tests: run via github actions It integrates better than Travis. Still run both for now to compare. Signed-off-by: Mike Frysinger --- .github/workflows/build-test-ci.yml | 33 +++++++++++++++++++++++++++++ .gitignore | 1 + travis/main.sh | 6 ++++-- 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/build-test-ci.yml diff --git a/.github/workflows/build-test-ci.yml b/.github/workflows/build-test-ci.yml new file mode 100644 index 0000000..e1c14f6 --- /dev/null +++ b/.github/workflows/build-test-ci.yml @@ -0,0 +1,33 @@ +# 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 diff --git a/.gitignore b/.gitignore index cdb96e4..e601422 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,7 @@ config.status Makefile # our generated files +/build/ /elf2flt /elf2flt.ld /flthdr diff --git a/travis/main.sh b/travis/main.sh index d6d81f9..63a1856 100755 --- a/travis/main.sh +++ b/travis/main.sh @@ -36,8 +36,10 @@ build_one() { } 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 -- 2.39.5