File tree Expand file tree Collapse file tree 4 files changed +27
-11
lines changed
Expand file tree Collapse file tree 4 files changed +27
-11
lines changed Original file line number Diff line number Diff line change 4242 ./_spidermonkey_install/*
4343 key : spidermonkey115.1.0-${{ runner.os }}-${{ runner.arch }}
4444 lookup-only : true # skip download
45- - name : Setup Poetry
46- if : ${{ steps.cache-spidermonkey.outputs.cache-hit != 'true' }}
47- uses : snok/install-poetry@v1
48- with :
49- version : 1.5.1
5045 - name : Setup XCode
5146 if : ${{ matrix.os == 'macos-13' && steps.cache-spidermonkey.outputs.cache-hit != 'true' }}
5247 # SpiderMonkey 115 ESR requires XCode SDK version at least 13.3
6762 ./_spidermonkey_install/*
6863 key : spidermonkey115.1.0-${{ runner.os }}-${{ runner.arch }}
6964 lookup-only : true # skip download
70- - name : Setup Poetry
71- if : ${{ steps.cache-spidermonkey.outputs.cache-hit != 'true' }}
72- uses : snok/install-poetry@v1
73- with :
74- version : 1.5.1
7565 - name : Install dependencies
7666 if : ${{ steps.cache-spidermonkey.outputs.cache-hit != 'true' }}
7767 shell : powershell
Original file line number Diff line number Diff line change 1+ {
2+ "configurations" : [
3+ {
4+ "name" : " Linux" ,
5+ "includePath" : [
6+ " ${workspaceFolder}/include/**"
7+ ],
8+ "defines" : [],
9+ "compilerPath" : " /usr/bin/clang" ,
10+ "cStandard" : " c17" ,
11+ "cppStandard" : " c++20" ,
12+ "intelliSenseMode" : " linux-clang-x64" ,
13+ "browse" : {
14+ "limitSymbolsToIncludedHeaders" : true
15+ },
16+ "compileCommands" : " ${workspaceFolder}/build/compile_commands.json"
17+ }
18+ ],
19+ "version" : 4
20+ }
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ project("PythonMonkey"
1111set (CMAKE_CXX_STANDARD 20)
1212set (CMAKE_CXX_STANDARD_REQUIRED ON )
1313set (CMAKE_CXX_EXTENSIONS OFF )
14+ set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
1415
1516# Add an external; appends to `PYTHONMONKEY_EXTERNAL_FILES` in the parent scope.
1617function (pythonmonkey_add_external PYTHONMONKEY_EXTERNAL)
Original file line number Diff line number Diff line change 2424curl --proto ' =https' --tlsv1.2 https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.69 # force to use Rust 1.69 because 1.70 has linking issues on Windows
2525# Setup Poetry
2626curl -sSL https://install.python-poetry.org | python3 - --version " 1.5.1"
27- poetry self add " poetry-dynamic-versioning[plugin]"
27+ if [[ " $OSTYPE " == " msys" * ]]; then # Windows
28+ POETRY_BIN=" $APPDATA /Python/Scripts/poetry"
29+ else
30+ POETRY_BIN=` echo ~ /.local/bin/poetry` # expand tilde
31+ fi
32+ $POETRY_BIN self add ' poetry-dynamic-versioning[plugin]'
2833echo " Done installing dependencies"
2934
3035echo " Downloading spidermonkey source code"
You can’t perform that action at this time.
0 commit comments