Skip to content

Commit a1a48d6

Browse files
authored
Build JNI library on windows (#17)
* Build JNI library on windows * Use curl instead of wget
1 parent 6393a34 commit a1a48d6

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ on: push
66

77
jobs:
88
browser-jni:
9-
runs-on: ubuntu-22.04
10-
container: ghcr.io/eclipse-set/rust-x86_64-pc-windows-gnu:latest
9+
runs-on: windows-2022
1110
steps:
1211
- uses: actions/checkout@v3
1312

@@ -17,6 +16,7 @@ jobs:
1716
rm -rf java/org.eclipse.set.browser.cef.win32/res/cef
1817
mkdir -p java/org.eclipse.set.browser.cef.win32/res/cef
1918
mkdir -p java/org.eclipse.set.browser.lib/res
19+
shell: bash
2020

2121
- name: Cache CEF
2222
id: cef-cache
@@ -32,23 +32,25 @@ jobs:
3232
if: steps.cef-cache.outputs.cache-hit != 'true'
3333
run: |
3434
VERSION=$(grep -E -v ^# ../../CEF_VERSION.txt)
35-
wget https://cef-builds.spotifycdn.com/$VERSION.tar.bz2 -O cef.tar.bz2
35+
curl -o cef.tar.bz2 https://cef-builds.spotifycdn.com/$VERSION.tar.bz2
3636
tar xf cef.tar.bz2 $VERSION/LICENSE.txt $VERSION/Resources --strip-components 1
3737
tar xf cef.tar.bz2 $VERSION/Release/libcef.lib --strip-components 2
3838
tar xf cef.tar.bz2 --wildcards $VERSION/Release/*.dll --wildcards $VERSION/Release/*.bin --strip-components 2
3939
cp -r *.dll *.bin Resources/* LICENSE.txt ../../java/org.eclipse.set.browser.cef.win32/res/cef
4040
ls -avl ../../java/org.eclipse.set.browser.cef.win32/res/cef
4141
working-directory: cef/Release
42+
shell: bash
4243

4344
- name: Build Rust
44-
run: cargo clean && cargo build --release --target x86_64-pc-windows-gnu
45+
run: cargo clean && cargo build --release
4546
working-directory: native
47+
shell: bash
4648

4749
- name: Archive binaries
4850
uses: actions/upload-artifact@v3
4951
with:
5052
name: chromium-swt-libs
51-
path: native/target/x86_64-pc-windows-gnu/release/chromium_*.*
53+
path: native/target/release/chromium_*.*
5254
retention-days: 1
5355

5456
build:

0 commit comments

Comments
 (0)