Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
Merge pull request #443 from EOSIO/cicd-actions-r1.9
Browse files Browse the repository at this point in the history
[1.9.x] Actions for community PRs.
  • Loading branch information
scottarnette authored Jan 28, 2020
2 parents 0bba461 + 429bb40 commit 47d0fd0
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .cicd/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ if [[ "$BUILDKITE" == 'true' ]]; then
CDT_URL="$(buildkite-agent meta-data get cdt-url)"
CDT_VERSION="$(buildkite-agent meta-data get cdt-version)"
DOCKER_IMAGE="$(buildkite-agent meta-data get docker-image)"
else # Actions
. ./.cicd/helpers/dependency-info.sh
DOCKER_IMAGE=${DOCKER_IMAGE:-eosio/ci-contracts-builder:base-ubuntu-18.04-$EOSIO_COMMIT}
fi
ARGS=${ARGS:-"--rm -v $(pwd):$MOUNTED_DIR"}
CDT_COMMANDS="dpkg -i $MOUNTED_DIR/eosio.cdt.deb && export PATH=/usr/opt/eosio.cdt/$CDT_VERSION/bin:\\\$PATH"
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Pull Request
on: [pull_request]

jobs:
start-job:
name: Start Job
runs-on: ubuntu-latest
steps:
- name: Start Job.
run: echo "PR created. Builds will be triggered here for forked PRs or Buildkite for internal PRs."


ubuntu-1804-build:
if: github.event.pull_request.base.repo.id != github.event.pull_request.head.repo.id
name: Ubuntu 18.04 | Build
runs-on: ubuntu-latest
needs: start-job
steps:
- name: Checkout
uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e
with:
submodules: recursive
- name: Build
run: |
./.cicd/build.sh
tar -pczf build.tar.gz build
- name: Upload Build Artifact
uses: actions/upload-artifact@v1
with:
name: ubuntu-1804-build
path: build.tar.gz
ubuntu-1804-parallel-test:
name: Ubuntu 18.04 | Unit Test
runs-on: ubuntu-latest
needs: ubuntu-1804-build
steps:
- name: Checkout
uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e
with:
submodules: recursive
- name: Download Build Artifact
uses: actions/download-artifact@v1
with:
name: ubuntu-1804-build
- name: Parallel Test
run: |
tar -xzf ubuntu-1804-build/build.tar.gz
./.cicd/test.sh
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

0 comments on commit 47d0fd0

Please sign in to comment.