Skip to content

Commit

Permalink
Revert cpp test workflow to use vm build
Browse files Browse the repository at this point in the history
  • Loading branch information
aahmed-se committed Jul 23, 2020
1 parent 4ea41eb commit 661f8d2
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/ci-cpp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,38 @@ jobs:
cpp-tests:
name:
runs-on: ubuntu-latest
container:
image: apachepulsar/pulsar-build:latest
timeout-minutes: 120

steps:

- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}

- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK 1.8
uses: actions/setup-java@v1
if: steps.docs.outputs.changed_only == 'no'
with:
java-version: 1.8

- name: clean disk
run: |
sudo swapoff -a
sudo rm -f /swapfile
sudo apt clean
docker rmi $(docker images -q) -f
df -h
- name: build package
run: mvn -B -ntp -q install -Pcore-modules -DskipTests

Expand Down

0 comments on commit 661f8d2

Please sign in to comment.