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 42
42
./_spidermonkey_install/*
43
43
key : spidermonkey115.1.0-${{ runner.os }}-${{ runner.arch }}
44
44
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
50
45
- name : Setup XCode
51
46
if : ${{ matrix.os == 'macos-13' && steps.cache-spidermonkey.outputs.cache-hit != 'true' }}
52
47
# SpiderMonkey 115 ESR requires XCode SDK version at least 13.3
67
62
./_spidermonkey_install/*
68
63
key : spidermonkey115.1.0-${{ runner.os }}-${{ runner.arch }}
69
64
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
75
65
- name : Install dependencies
76
66
if : ${{ steps.cache-spidermonkey.outputs.cache-hit != 'true' }}
77
67
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"
11
11
set (CMAKE_CXX_STANDARD 20)
12
12
set (CMAKE_CXX_STANDARD_REQUIRED ON )
13
13
set (CMAKE_CXX_EXTENSIONS OFF )
14
+ set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
14
15
15
16
# Add an external; appends to `PYTHONMONKEY_EXTERNAL_FILES` in the parent scope.
16
17
function (pythonmonkey_add_external PYTHONMONKEY_EXTERNAL)
Original file line number Diff line number Diff line change 24
24
curl --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
25
25
# Setup Poetry
26
26
curl -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]'
28
33
echo " Done installing dependencies"
29
34
30
35
echo " Downloading spidermonkey source code"
You can’t perform that action at this time.
0 commit comments