Skip to content

Commit 9dc0fd5

Browse files
committed
cleanup
1 parent 8c1bdcc commit 9dc0fd5

4 files changed

Lines changed: 22 additions & 41 deletions

File tree

.github/workflows/xtracfg.yml

Lines changed: 21 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ jobs:
88
strategy:
99
matrix:
1010
os:
11-
#- runner: ubuntu-24.04
12-
# type: linux
13-
# platform: linux-amd64
14-
# - runner: ubuntu-24.04-arm
15-
# type: linux
16-
# platform: linux-arm64
17-
# - runner: macos-14
18-
# type: macos
19-
# platform: darwin-arm64
11+
- runner: ubuntu-24.04
12+
type: linux
13+
platform: linux-amd64
14+
- runner: ubuntu-24.04-arm
15+
type: linux
16+
platform: linux-arm64
17+
- runner: macos-14
18+
type: macos
19+
platform: darwin-arm64
2020
- runner: windows-2022
2121
type: windows
2222
platform: windows-amd64
@@ -55,7 +55,6 @@ jobs:
5555
CFLAGS="-fPIC" ./configure --static
5656
make
5757
- name: java
58-
continue-on-error: true
5958
working-directory: ./libxtracfg/java
6059
run: |
6160
./gradlew nativeCompile -PLIB=true
@@ -73,7 +72,6 @@ jobs:
7372
./test.sh
7473
- name: c
7574
if: ${{ matrix.os.type == 'windows' }}
76-
continue-on-error: true
7775
working-directory: ./libxtracfg/c
7876
run: |
7977
./build.bat
@@ -82,14 +80,12 @@ jobs:
8280
run: |
8381
ls -l ./libxtracfg/c/build
8482
- name: js
85-
continue-on-error: true
8683
working-directory: ./libxtracfg/js/xtracfg-native-binding
8784
run: |
8885
npm --loglevel verbose ci
8986
npm --loglevel verbose run prebuildify
9087
npm --loglevel verbose run test
9188
- name: log3
92-
continue-on-error: true
9389
run: |
9490
ls -R ./libxtracfg/js/xtracfg-native-binding/prebuilds
9591
# TODO: run tests for java, c, go
@@ -117,30 +113,25 @@ jobs:
117113
name: libxtracfg-js-${{ matrix.os.platform }}
118114
path: ./libxtracfg/js/xtracfg-native-binding/prebuilds
119115
retention-days: 1
120-
- uses: actions/upload-artifact@v4
121-
with:
122-
name: npm-logs
123-
path: C:\\npm\\cache\\_logs
124-
retention-days: 1
125116

126117
build_binaries:
127118
runs-on: ${{ matrix.os.runner }}
128119
needs: build_libraries
129120
strategy:
130121
matrix:
131122
os:
132-
# - runner: ubuntu-24.04
133-
# type: linux
134-
# platform: linux-amd64
135-
# - runner: ubuntu-24.04-arm
136-
# type: linux
137-
# platform: linux-arm64
138-
# - runner: macos-14
139-
# type: macos
140-
# platform: darwin-arm64
141-
- runner: windows-2022
142-
type: windows
143-
platform: windows-amd64
123+
- runner: ubuntu-24.04
124+
type: linux
125+
platform: linux-amd64
126+
- runner: ubuntu-24.04-arm
127+
type: linux
128+
platform: linux-arm64
129+
- runner: macos-14
130+
type: macos
131+
platform: darwin-arm64
132+
#- runner: windows-2022
133+
# type: windows
134+
# platform: windows-amd64
144135
defaults:
145136
run:
146137
working-directory: ./xtracfg
@@ -234,7 +225,6 @@ jobs:
234225
ls -lR ./**/build
235226
236227
publish_docker:
237-
if: ${{ github.ref_type == 'linux' }}
238228
runs-on: ubuntu-latest
239229
needs: build_binaries
240230
steps:

libxtracfg/c/build.bat

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@ cd %OUT_DIR%
1111

1212
echo lib
1313

14-
REM ls -l -R %JAVA_HOME%
15-
1614
REM static
1715
cl.exe /c /MD /W4 /I./ /I%JAVA_HOME%/include /I%JAVA_HOME%/include/%PLATFORM% /Folibxtracfg.obj ../wrapper/libxtracfg.c
18-
REM copy libxtracfgjni_static.lib libxtracfg.lib
1916
lib.exe /OUT:libxtracfg.lib /VERBOSE libxtracfg.obj libxtracfgjni_static.lib
2017

2118
certutil -hashfile libxtracfg.lib SHA1 > libxtracfg.sha1sum.tmp

libxtracfg/c/test.bat

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,8 @@ set DIR=%~dp0
44
set DIR=%DIR:~0,-1%
55
set DIR=D:\\a\\xtraplatform-cli\\xtraplatform-cli\\libxtracfg\\c
66

7-
cp C:\hostedtoolcache\windows\graalvm-jdk-21_windows-x64_bin\21.0.0\x64\graalvm-jdk-21.0.9+7.1/bin/server\jvm.dll build\
8-
9-
ls -l build
10-
117
cd build
128

139
cmd.exe /c test.exe "{\"command\": \"info\", \"source\": \"%DIR%\", \"debug\": \"true\", \"verbose\": \"true\"}"
1410

15-
dumpbin /dependents test.exe
16-
1711
ldd test.exe

libxtracfg/go/xtracfg/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package xtracfg
33
/*
44
#cgo CFLAGS: -I ../../c/include
55
#cgo LDFLAGS: -L../../c/build -lxtracfg
6-
#cgo windows LDFLAGS: -L../../c/build -lxtracfg -lxtracfgjni_static_ext
6+
#cgo windows LDFLAGS: -lxtracfgjni_static_ext
77
88
#include <stdlib.h>
99
#include "libxtracfg.h"

0 commit comments

Comments
 (0)