Skip to content

Commit

Permalink
ci: windows: requires msys2 shell for action-meson
Browse files Browse the repository at this point in the history
  • Loading branch information
pthierry-ledger committed Aug 2, 2024
1 parent ce3c0a7 commit 4dd84ae
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/msys2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ jobs:
path: crossfiles
- name: Deploy cross-files
run: |
echo "MESON_CROSS_FILES=$GITHUB_WORKSPACE\crossfiles" >> $GITHUB_ENV
cp $GITHUB_WORKSPACE\crossfiles\mingw64-arm-none-eabi-gcc.ini $GITHUB_WORKSPACE
echo "MESON_CROSS_FILES=$GITHUB_WORKSPACE" >> $GITHUB_ENV
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@v1
with:
Expand All @@ -103,20 +104,22 @@ jobs:
compiler: gcc
triple: arm-none-eabi
ref: 13.2.Rel1

- name: set safe dir for dunami (to be removed)
run: |
git config --global --add safe.directory '*'
- name: defconfig
run: |
defconfig configs/nucleo_u5a5_autotest_defconfig
- name: Meson Build
uses: outpost-os/action-meson@support-custom-pip-bin-name
with:
cross_files: ${{ format('{0}/{1}', env.MESON_CROSS_FILES, 'mingw64-arm-none-eabi-gcc.ini') }}
actions: '["prefetch", "setup", "compile"]'
options: '-Dconfig=.config -Ddts=dts/examples/nucleo_u5a5_autotest.dts -Ddts-include-dirs=dts'
pip: 'python3 -m pip'
run: |
meson subprojects download || true
meson subprojects foreach python3 -m pip install -r requirements.txt || true
meson setup -Dconfig=.config -Ddts=dts/examples/nucleo_u5a5_autotest.dts -Ddts-include-dirs=dts --cross-file mingw64-arm-none-eabi-gcc.ini builddir
ninja -C builddir
ninja -C builddir test
ninja -C builddir coverage
ninja -C builddir install
meson dist --no-tests --include-subprojects
env:
MSYS2_ARCH: x86_64
MSYS2_CURSES: pdcurses
Expand Down

0 comments on commit 4dd84ae

Please sign in to comment.