Skip to content

Commit b882e64

Browse files
Merge pull request #9 from sifive/bump-ci
Bump CI
2 parents b285612 + 071fc1e commit b882e64

File tree

5 files changed

+15
-36
lines changed

5 files changed

+15
-36
lines changed

.github/workflows/wake.yml

Lines changed: 8 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,41 +9,19 @@ on:
99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
12-
env:
13-
# $WIT_WORKSPACE path is relative to $GITHUB_WORKSPACE
14-
WIT_WORKSPACE: wit-workspace
1512

1613
steps:
17-
- uses: actions/checkout@v2
18-
with:
19-
path: wit-packages/cmsis-svd-generator
20-
2114
- name: 'Init Wit Workspace'
22-
uses: sifive/wit/actions/wit@v0.12.0
15+
uses: sifive/wit/actions/init@v0.13.2
2316
with:
24-
command: init
25-
arguments: |
26-
${{ env.WIT_WORKSPACE }}
27-
-a ./wit-packages/cmsis-svd-generator
28-
-a [email protected]:sifive/environment-blockci-sifive.git::0.3.0
29-
force_github_https: true
17+
additional_packages: [email protected]:sifive/environment-blockci-sifive.git::0.7.1
3018

3119
- name: 'Run Wake API Test'
32-
run: |
33-
set -euo pipefail
34-
docker run \
35-
--volume="$GITHUB_WORKSPACE/$WIT_WORKSPACE:/mnt/workspace" \
36-
--workdir="/mnt/workspace" \
37-
--rm \
38-
sifive/environment-blockci:0.3.0 \
39-
cmsis-svd-generator/tests/test-wake-api.sh
20+
uses: sifive/environment-blockci-sifive/actions/[email protected]
21+
with:
22+
command: cmsis-svd-generator/tests/test-wake-api.sh
4023

4124
- name: 'Run generator install test'
42-
run: |
43-
set -euo pipefail
44-
docker run \
45-
--volume="$GITHUB_WORKSPACE/$WIT_WORKSPACE:/mnt/workspace" \
46-
--workdir="/mnt/workspace" \
47-
--rm \
48-
sifive/environment-blockci:0.3.0 \
49-
cmsis-svd-generator/tests/test-wake-install.sh
25+
uses: sifive/environment-blockci-sifive/actions/[email protected]
26+
with:
27+
command: cmsis-svd-generator/tests/test-wake-install.sh

build.wake

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ global def runSVDGenerator options =
3131
# Python sources and the svd template files
3232
def generatorSources = sources here `.*\.(py|svd)`
3333
def dtsSources = topDTSFile, otherDTSFiles
34-
generatorSources ++ dtsSources
34+
def outDir = mkdir "{output}/.."
35+
outDir, generatorSources ++ dtsSources
3536

36-
def outputs = options.getSVDGeneratorOptionsOutputFile, Nil
37+
def output = options.getSVDGeneratorOptionsOutputFile
3738

3839
def args =
3940
def output =
@@ -49,7 +50,7 @@ global def runSVDGenerator options =
4950
makePlan (pythonCommand "{generatorDir}/generate_svd.py" args) inputs
5051
| addPlanRelativePath "PYTHONPATH" generatorDir
5152
| addPythonRequirementsEnv generatorDir
52-
| setPlanFnOutputs (\_ outputs)
53+
| setPlanFnOutputs (\_ output, Nil)
5354
| runJob
5455

5556
# This allows the python virtualenv to be created prior to running a build

tests/test-wake-api.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ OUTPUT_PATH="build/cmsis-svd-generator/design.svd"
99

1010
wake --init .
1111

12-
wake -v "runSVDGenerator (makeSVDGeneratorOptions (source \"${SPIKE_DTS_DIR}/design.dts\") (sources \"${SPIKE_DTS_DIR}\" \`core.dts\`) \"${OUTPUT_PATH}\")"
12+
wake -v -x "runSVDGenerator (makeSVDGeneratorOptions (source \"${SPIKE_DTS_DIR}/design.dts\") (sources \"${SPIKE_DTS_DIR}\" \`core.dts\`) \"${OUTPUT_PATH}\")"
1313

1414
>&2 echo "$0: Checking for ${OUTPUT_PATH}"
1515
if [ ! -f ${OUTPUT_PATH} ] ; then

tests/test-wake-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ INSTALL_PATH="install-path"
66

77
wake --init .
88

9-
wake -v "installSVDGenerator \"${INSTALL_PATH}\""
9+
wake -v -x "installSVDGenerator \"${INSTALL_PATH}\""
1010

1111
>&2 echo "$0: Checking for ${INSTALL_PATH}"
1212
if [ ! -d ${INSTALL_PATH} ] ; then

wit-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[
22
{
3-
"commit": "a2e36e2c523c66d499810bd52a2956623e2066f6",
3+
"commit": "e135f6a013d830f34aeb1a9542f42c0aabc80813",
44
"name": "api-languages-sifive",
55
"source": "[email protected]:sifive/api-languages-sifive.git"
66
}

0 commit comments

Comments
 (0)