Skip to content

Commit

Permalink
work with wake/jdk/scala/python
Browse files Browse the repository at this point in the history
  • Loading branch information
Liwei Ma authored and Liwei Ma committed May 17, 2020
1 parent 12cb657 commit dc1dc80
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@ on:
branches:
- master
pull_request:
watch:
types: [ started ]

jobs:

build:
name: build

runs-on: ubuntu-latest
timeout-minutes: 3

if: github.actor == github.event.repository.owner.login

steps:

- name: Checkout
Expand All @@ -28,4 +33,4 @@ jobs:
- name: Build workspace
uses: ./
with:
arguments: -x 'compileScalaModule rocketchipScalaModule'
arguments: -x rocketchipScalaModule.compileScalaModule
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Note: This version should be changed when releasing new versions of Wit.
FROM davidmlw/alpine:alpine-3.10

COPY entrypoint.sh /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ inputs:
default: ''
runs:
using: 'docker'
## image: 'davidmlw/alpine:alpine-3.10'
## entrypoint: './entrypoint.sh'
image: 'Dockerfile'
7 changes: 5 additions & 2 deletions entrypoint.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/bin/sh

set -euxo pipefail

cd workspace
mkdir -p scala && wget -O scala/coursier https://git.io/coursier-cli && chmod +x scala/coursier
wake --init .
exec wake $INPUT_ARGUMENTS
wake -x 'compileScalaModule rocketchipScalaModule'
pwd
ls
exec echo $INPUT_ARGUMENTS

0 comments on commit dc1dc80

Please sign in to comment.