Skip to content

Commit

Permalink
temp commented
Browse files Browse the repository at this point in the history
  • Loading branch information
soumeh01 committed Aug 16, 2024
1 parent 371b9ba commit d48140c
Showing 1 changed file with 65 additions and 3 deletions.
68 changes: 65 additions & 3 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,68 @@ jobs:
gh run download -D packchk-${{ matrix.target }}-${{ matrix.arch }} ${{ steps.get_run_id.outputs.NIGHTLY_RUN_ID }} -n packchk-${{ matrix.target }}-${{ matrix.arch }} -R Open-CMSIS-Pack/devtools
gh run download -D svdconv-${{ matrix.target }}-${{ matrix.arch }} ${{ steps.get_run_id.outputs.NIGHTLY_RUN_ID }} -n svdconv-${{ matrix.target }}-${{ matrix.arch }} -R Open-CMSIS-Pack/devtools
- name: test
shell: bash
run: |
ls -l
ls -l ./packchk-${{ matrix.target }}-${{ matrix.arch }}
- name: Unzip files
run: |
mkdir -p packchk
mkdir -p svdconv
packchk_dir="packchk-${{ matrix.target }}-${{ matrix.arch }}"
svdconv_dir="svdconv-${{ matrix.target }}-${{ matrix.arch }}"
if [[ "$RUNNER_OS" == "Linux" || "$RUNNER_OS" == "macOS" ]]; then
tar -xvf ${packchk_dir}/packchk-*-${{ matrix.target }}-${{ matrix.arch }}.tbz2 -C packchk
tar -xvf ${svdconv_dir}/svdconv-*-${{ matrix.target }}-${{ matrix.arch }}.tbz2 -C svdconv
elif [[ "$RUNNER_OS" == "Windows" ]]; then
unzip ${packchk_dir}/packchk-\*-${{ matrix.target }}-${{ matrix.arch }}.zip -d packchk
unzip ${svdconv_dir}/svdconv-\*-${{ matrix.target }}-${{ matrix.arch }}.zip -d svdconv
fi
- name: test
run: |
ls -l ./packchk
ls -l ./svdconv
# - name: Unzip file
# run: |
# case "$RUNNER_OS" in
# Linux|macOS)
# tar -xvf packchk-${{ matrix.target }}-${{ matrix.arch }}/packchk-\*-${{ matrix.target }}-${{ matrix.arch }}.tbz2 -C packchk-${{ matrix.target }}-${{ matrix.arch }}/packchk-${{ matrix.target }}-${{ matrix.arch }}
# tar -xvf svdconv-${{ matrix.target }}-${{ matrix.arch }}/svdconv-${{ matrix.target }}-${{ matrix.arch }}.tbz2 -C svdconv-${{ matrix.target }}-${{ matrix.arch }}/svdconv-${{ matrix.target }}-${{ matrix.arch }}
# ;;
# Windows)
# unzip packchk-${{ matrix.target }}-${{ matrix.arch }}/packchk-\*-${{ matrix.target }}-${{ matrix.arch }}.zip -d packchk-${{ matrix.target }}-${{ matrix.arch }}/packchk-${{ matrix.target }}-${{ matrix.arch }}
# unzip svdconv-${{ matrix.target }}-${{ matrix.arch }}/svdconv-\*-${{ matrix.target }}-${{ matrix.arch }}.zip -d svdconv-${{ matrix.target }}-${{ matrix.arch }}/svdconv-${{ matrix.target }}-${{ matrix.arch }}
# ;;
# *)
# echo "Unsupported OS: $RUNNER_OS"
# exit 1
# ;;
# esac

# - name: Unzip file
# run: |
# if [[ "$RUNNER_OS" == "Linux" ]]; then
# unzip sample.zip -d output
# elif [[ "$RUNNER_OS" == "macOS" ]]; then
# unzip sample.zip -d output
# elif [[ "$RUNNER_OS" == "Windows" ]]; then
# powershell -Command "Expand-Archive -Path 'sample.zip' -DestinationPath 'output'"
# fi

# - name: Unzip file
# shell: bash
# run: |
# unzip packchk* -d packchk-${{ matrix.target }}-${{ matrix.arch }}
# unzip svdconv* -d svdconv-${{ matrix.target }}-${{ matrix.arch }}

# - name: test
# run: |
# ls -l ./packchk*/

- name: Checkout cmsis-toolbox repo
uses: actions/checkout@v4
with:
Expand All @@ -164,9 +226,9 @@ jobs:
mkdir -p ./cmsis-toolbox/bin
mkdir -p ./cmsis-toolbox/etc
cp ./projmgr-${{ matrix.target }}-${{ matrix.arch }}/csolution${{ matrix.binary_extension }} ./cmsis-toolbox/bin/csolution${{ matrix.binary_extension }}
cp ./cbuildgen-${{ matrix.target }}-${{ matrix.arch }}/cbuildgen${{ matrix.binary_extension }} ./cmsis-toolbox/bin/cbuildgen${{ matrix.binary_extension }}
cp ./packchk-${{ matrix.target }}-${{ matrix.arch }}/*/packchk${{ matrix.binary_extension }} ./cmsis-toolbox/bin/packchk${{ matrix.binary_extension }}
cp ./svdconv-${{ matrix.target }}-${{ matrix.arch }}/*/svdconv${{ matrix.binary_extension }} ./cmsis-toolbox/bin/svdconv${{ matrix.binary_extension }}
cp ./cbuildgen-${{ matrix.target }}-${{ matrix.arch }}/cbuildgen${{ matrix.binary_extension }}* ./cmsis-toolbox/bin/cbuildgen${{ matrix.binary_extension }}
cp ./packchk/packchk${{ matrix.binary_extension }} ./cmsis-toolbox/bin/packchk${{ matrix.binary_extension }}
cp ./svdconv/svdconv${{ matrix.binary_extension }} ./cmsis-toolbox/bin/svdconv${{ matrix.binary_extension }}
cp ./cbuild/build/cbuild${{ matrix.binary_extension }} ./cmsis-toolbox/bin/cbuild${{ matrix.binary_extension }}
cp ./cpackget/build/cpackget${{ matrix.binary_extension }} ./cmsis-toolbox/bin/cpackget${{ matrix.binary_extension }}
cp ./cbuild2cmake/build/cbuild2cmake${{ matrix.binary_extension }} ./cmsis-toolbox/bin/cbuild2cmake${{ matrix.binary_extension }}
Expand Down

0 comments on commit d48140c

Please sign in to comment.