nor/spi:add xtx25f64f #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Nuclei OpenOCD | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
name: build on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout openocd source code | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
path: openocd.git | |
- name: Checkout openocd-xpack tools | |
uses: actions/checkout@v2 | |
with: | |
repository: riscv-mcu/openocd-xpack | |
submodules: recursive | |
fetch-depth: 0 | |
ref: xpack_nuclei_next | |
path: openocd-xpack | |
- name: Preload docker images | |
run: | | |
cd openocd-xpack | |
# Remove --tty in script to try to avoid error: the input device is not a TTY | |
# No need for non-ci run | |
find scripts/ -type f | xargs sed -i -e 's/--tty/ /g' | |
bash ./scripts/build.sh preload-images | |
# Change version to develop | |
echo $(date +%Y%m%d_%H%M%S) > ./scripts/VERSION | |
cd .. | |
- name: Prepare openocd source code | |
run: | | |
mkdir -p ${HOME}/Work/openocd-build/ | |
# move previously already cloned source code to xpack build directory | |
# to avoid clone it again in xpack script | |
# Need to use develop version for xpack scripts | |
mv openocd.git ${HOME}/Work/openocd-build/ | |
- name: Build nuclei openocd | |
run: | | |
cd openocd-xpack | |
export COMPOSE_INTERACTIVE_NO_CLI=1 | |
bash ./scripts/build.sh --all | |
cd ../ | |
- name: Archive nuclei openocd | |
run: | | |
OPENOCD_DEPLOY=$(readlink -f $HOME/Work/openocd-build/deploy) | |
WORKPWD=$(pwd) | |
cd $OPENOCD_DEPLOY | |
zip -9 -q -r ${WORKPWD}/nuclei_openocd.zip . | |
- name: Upload openocd artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
# Artifact name | |
name: nuclei_openocd_build | |
# A file, directory or wildcard pattern that describes what to upload | |
path: nuclei_openocd.zip |