Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Commit fae89f8

Browse files
committed
Attempt to publish artifact
1 parent 3bcde1c commit fae89f8

File tree

2 files changed

+74
-43
lines changed

2 files changed

+74
-43
lines changed

.github/workflows/gh-mvn-2.yml

+71-40
Original file line numberDiff line numberDiff line change
@@ -112,55 +112,86 @@ jobs:
112112
name: maven-artifact
113113
path: bound/kt/target/
114114

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
130166
steps:
131-
- uses: actions/checkout@v2
167+
- name: Checkout repository
168+
uses: actions/checkout@v3
169+
with:
170+
submodules: true
171+
fetch-depth: 0
132172
- name: Download Maven artifact
133173
uses: actions/download-artifact@v3
134174
with:
135175
name: maven-artifact
136176
path: bound/kt/target/
137-
- name: Set up JDK 11
177+
- name: Set up Java
138178
uses: actions/setup-java@v3
139179
with:
140180
distribution: "adopt"
141181
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
144183
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
149195
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

bound/kt/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
55

6-
<groupId>tbdex.sdk.core</groupId>
7-
<artifactId>tbdex-core-kt</artifactId>
8-
<version>0.0.1</version>
6+
<groupId>tbdex.sdk</groupId>
7+
<artifactId>tbdex-core</artifactId>
8+
<version>0.0.2</version>
99
<packaging>jar</packaging>
1010

1111
<distributionManagement>

0 commit comments

Comments
 (0)