From: Mike Frysinger Date: Wed, 13 May 2020 11:14:04 +0000 (-0400) Subject: tests: run via github actions X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a9009e091bb14a67d0f8111820e6c4672decb8c6;p=elf2flt.git tests: run via github actions It integrates better than Travis. Still run both for now to compare. Signed-off-by: Mike Frysinger --- 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