Skip to content

Commit

Permalink
Windows CI
Browse files Browse the repository at this point in the history
Signed-off-by: Cédrik Fuoco <[email protected]>
  • Loading branch information
cedrik-fuoco-adsk committed Aug 27, 2024
1 parent 39eace1 commit 6f8ca0a
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: OpenRV

on:
push:
branches:
- 'feature/**'
paths:
- .github/workflows/ci.yml

pull_request:
branches:
- 'feature/**'
paths:
- .github/workflows/ci.yml

jobs:
windows:
runs-on: windows-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup msys2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
cache: true
install: >-
mingw-w64-x86_64-meson
# install: >-
# mingw-w64-x86_64-autotools
# mingw-w64-x86_64-glew
# mingw-w64-x86_64-libarchive
# mingw-w64-x86_64-make
# mingw-w64-x86_64-meson
# mingw-w64-x86_64-toolchain
# autoconf
# automake
# bison
# flex
# libtool
# nasm
# ninja
# p7zip
# patch
# unzip
# zip

- uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Display Python installation location
run: |
python -c "import sys; print(sys.executable)"
# - name: Setup PATH environment variable
# run: |
# echo "PATH=C:/hostedtoolcache/windows/Python/3.10.11/x64:$PATH" >> $GITHUB_ENV

- run: |
echo "export PATH=/c/hostedtoolcache/windows/Python/3.10.11/x64:$PATH\" >> ~/.bash_profile
shell: msys2 {0}
- run: |
echo $PATH
ls -al /c/hostedtoolcache/windows/Python/3.10.11/x64
which python
which python3
shell: msys2 {0}
- name: Install pip
run: |
SETUPTOOLS_USE_DISTUTILS=stdlib python3 -m pip install --user --upgrade -r ./requirements.txt
shell: msys2 {0}


0 comments on commit 6f8ca0a

Please sign in to comment.