Skip to content

Commit

Permalink
updating GitHub CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
agracio committed Sep 15, 2024
1 parent ec95996 commit a896fe6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,26 +67,31 @@ jobs:
# timeout-minutes: 30
# run: |
# node-gyp configure build --target=${{ matrix.electron }} --disturl=https://electronjs.org/headers --runtime=electron --release --arch=ia32
# copy /y build\Release\edge_*.node release\ia32\${{ matrix.electron }}
# rmdir /S /Q build
# cmd /c copy /y build\Release\edge_*.node release\ia32\${{ matrix.electron }}
# cmd /c rmdir /S /Q build

# - name: Build x64
# timeout-minutes: 30
# run: |
# node-gyp configure build --target=${{ matrix.electron }} --disturl=https://electronjs.org/headers --runtime=electron --release --arch=x64
# copy /y build\Release\edge_*.node release\x64\${{ matrix.electron }}
# rmdir /S /Q build
# cmd /c copy /y build\Release\edge_*.node release\x64\${{ matrix.electron }}
# cmd /c rmdir /S /Q build

- name: Build arm64
timeout-minutes: 30
shell: pwsh
run: |
node-gyp configure --target=${{ matrix.electron }} --disturl=https://electronjs.org/headers --runtime=electron --release --arch=arm64
sed -i -e 's/<FloatingPointModel>Strict</FloatingPointModel>/<!-- <FloatingPointModel>Strict</FloatingPointModel> -->/g' build/build_managed.vcxproj
sed -i -e 's/<FloatingPointModel>Strict</FloatingPointModel>/<!-- <FloatingPointModel>Strict</FloatingPointModel> -->/g' build/edge_coreclr.vcxproj
sed -i -e 's/<FloatingPointModel>Strict</FloatingPointModel>/<!-- <FloatingPointModel>Strict</FloatingPointModel> -->/g' build/edge_nativeclr.vcxproj
(Get-Content -Raw build/build_managed.vcxproj) -replace '<FloatingPointModel>Strict</FloatingPointModel>', '<!-- <FloatingPointModel>Strict</FloatingPointModel> -->' | Out-File -Encoding Utf8 build/build_managed.vcxproj
(Get-Content -Raw build/edge_coreclr.vcxproj) -replace '<FloatingPointModel>Strict</FloatingPointModel>', '<!-- <FloatingPointModel>Strict</FloatingPointModel> -->' | Out-File -Encoding Utf8 build/edge_coreclr.vcxproj
(Get-Content -Raw build/edge_nativeclr.vcxproj) -replace '<FloatingPointModel>Strict</FloatingPointModel>', '<!-- <FloatingPointModel>Strict</FloatingPointModel> -->' | Out-File -Encoding Utf8 build/edge_nativeclr.vcxproj
node-gyp build
copy /y build\Release\edge_*.node release\arm64\${{ matrix.electron }}
rmdir /S /Q build
cmd /c copy /y build\Release\edge_*.node release\arm64\${{ matrix.electron }}
cmd /c rmdir /S /Q build
- name: Upload artifacts
uses: actions/[email protected]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- 'stress/*'
- 'performance/*'
- '.github/FUNDING.YML'
- '.github/build.yml'
- '**/*.md'
- '**/*.d.ts'
- '**/*.bat'
Expand Down

0 comments on commit a896fe6

Please sign in to comment.