@@ -112,55 +112,86 @@ jobs:
112
112
name : maven-artifact
113
113
path : bound/kt/target/
114
114
115
- test_shared_libraries :
116
- needs : package_artifact
117
- strategy :
118
- matrix :
119
- include :
120
- - target : aarch64_apple_darwin
121
- os : macos-latest
122
- - target : x86_64_apple_darwin
123
- os : macos-12
124
- - target : x86_64_unknown_linux_gnu
125
- os : ubuntu-latest
126
- - target : x86_64_unknown_linux_musl
127
- os : ubuntu-latest
128
- name : Test on ${{ matrix.target }}
129
- runs-on : ${{ matrix.os }}
115
+ # test_shared_libraries:
116
+ # needs: package_artifact
117
+ # strategy:
118
+ # matrix:
119
+ # include:
120
+ # - target: aarch64_apple_darwin
121
+ # os: macos-latest
122
+ # - target: x86_64_apple_darwin
123
+ # os: macos-12
124
+ # - target: x86_64_unknown_linux_gnu
125
+ # os: ubuntu-latest
126
+ # - target: x86_64_unknown_linux_musl
127
+ # os: ubuntu-latest
128
+ # name: Test on ${{ matrix.target }}
129
+ # runs-on: ${{ matrix.os }}
130
+ # steps:
131
+ # - uses: actions/checkout@v2
132
+ # - name: Download Maven artifact
133
+ # uses: actions/download-artifact@v3
134
+ # with:
135
+ # name: maven-artifact
136
+ # path: bound/kt/target/
137
+ # - name: Set up JDK 11
138
+ # uses: actions/setup-java@v3
139
+ # with:
140
+ # distribution: "adopt"
141
+ # java-version: "11"
142
+ # - name: Run tests on macOS and Ubuntu
143
+ # if: ${{ matrix.target != 'x86_64_unknown_linux_musl' }}
144
+ # run: |
145
+ # cd bound/kt
146
+ # mvn '-Dtest=SystemArchitectureTest#can load shared library' test
147
+ # - name: Run tests on Alpine for x86_64_unknown_linux_musl
148
+ # if: ${{ matrix.target == 'x86_64_unknown_linux_musl' }}
149
+ # run: |
150
+ # sudo apt-get update
151
+ # sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
152
+ # curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
153
+ # sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
154
+ # sudo apt-get update
155
+ # sudo apt-get install -y docker-ce docker-ce-cli containerd.io
156
+ # docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace \
157
+ # alpine:latest /bin/sh -c "\
158
+ # apk update && apk add openjdk11 && apk add maven && \
159
+ # cd bound/kt && \
160
+ # mvn '-Dtest=SystemArchitectureTest#can load shared library' test"
161
+
162
+ publish_artifact :
163
+ runs-on : ubuntu-latest
164
+ # needs: test_shared_libraries
165
+ name : Publish Maven Artifact
130
166
steps :
131
- - uses : actions/checkout@v2
167
+ - name : Checkout repository
168
+ uses : actions/checkout@v3
169
+ with :
170
+ submodules : true
171
+ fetch-depth : 0
132
172
- name : Download Maven artifact
133
173
uses : actions/download-artifact@v3
134
174
with :
135
175
name : maven-artifact
136
176
path : bound/kt/target/
137
- - name : Set up JDK 11
177
+ - name : Set up Java
138
178
uses : actions/setup-java@v3
139
179
with :
140
180
distribution : " adopt"
141
181
java-version : " 11"
142
- - name : Run tests on macOS and Ubuntu
143
- if : ${{ matrix.target != 'x86_64_unknown_linux_musl' }}
182
+ - name : Set up Maven settings
144
183
run : |
145
- cd bound/kt
146
- mvn '-Dtest=SystemArchitectureTest#can load shared library' test
147
- - name : Run tests on Alpine for x86_64_unknown_linux_musl
148
- if : ${{ matrix.target == 'x86_64_unknown_linux_musl' }}
184
+ mkdir -p ~/.m2
185
+ echo "<settings xmlns=\"http://maven.apache.org/SETTINGS/1.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd\">
186
+ <servers>
187
+ <server>
188
+ <id>github</id>
189
+ <username>${{ github.actor }}</username>
190
+ <password>${{ secrets.GITHUB_TOKEN }}</password>
191
+ </server>
192
+ </servers>
193
+ </settings>" > ~/.m2/settings.xml
194
+ - name : Build and deploy
149
195
run : |
150
- sudo apt-get update
151
- sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
152
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
153
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
154
- sudo apt-get update
155
- sudo apt-get install -y docker-ce docker-ce-cli containerd.io
156
- docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace \
157
- alpine:latest /bin/sh -c "\
158
- apk update && apk add openjdk11 && apk add maven && \
159
- cd bound/kt && \
160
- mvn '-Dtest=SystemArchitectureTest#can load shared library' test"
161
- publish_artifact :
162
- runs-on : ubuntu-latest
163
- needs : test_shared_libraries
164
- name : Publish Maven Artifact
165
- steps :
166
- - run : echo "hello world"
196
+ cd bound/kt
197
+ mvn deploy -DskipTests=true
0 commit comments