summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2019-12-27 20:53:55 +0700
committerGitHub <[email protected]>2019-12-27 20:53:55 +0700
commite74dd33945d66f8d685f416eb927a3dac86a510c (patch)
treef0bc61b0cf61f978d331462259cfd89f1f3cded9 /.github/workflows
parent6e4df81998399e86f18bb2db47e94b013f394846 (diff)
Update build.yml
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ff86e72cf..6f491808d 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -11,23 +11,29 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: 3.5
+
- name: Setup Node.js
uses: actions/[email protected]
+
- name: Setup Ruby
uses: actions/[email protected]
+
- name: Install Toolchains
run: |
npm install --global xpm
xpm install --global @xpack-dev-tools/arm-none-eabi-gcc@latest
xpm install --global @xpack-dev-tools/riscv-none-embed-gcc@latest
- - name: Git clone
+
+ - name: Checkout TinyUSB
uses: actions/checkout@v2
+
- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive
+
- name: Unit Tests
run: |
# Install Ceedling
@@ -35,6 +41,7 @@ jobs:
cd test
ceedling test:all
cd ..
+
- name: Build
run: |
export PATH=$PATH:`echo $HOME/opt/xPacks/@xpack-dev-tools/arm-none-eabi-gcc/*/.content/bin`:`echo $HOME/opt/xPacks/@xpack-dev-tools/riscv-none-embed-gcc/*/.content/bin`