Skip to content

Commit

Permalink
doc: update .github
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed Feb 18, 2023
1 parent fff01ec commit c2d00e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ jobs:
uses: "WyriHaximus/github-action-get-previous-tag@v1"
- name: replace version
run: sed -i "s/SONIC_VERSION/${{ steps.previoustag.outputs.tag }}/g" pom.xml
- name: replace platform
run: sed -i "s/SONIC_PLATFORM/${{ matrix.platform }}/g" pom.xml
- name: Set up Maven Central Repo
uses: actions/setup-java@v1
with:
Expand All @@ -110,7 +108,7 @@ jobs:
- name: Publish to Maven Central Repo
uses: samuelmeuli/action-maven-publish@v1
with:
maven_args: -Dmaven.test.skip=true
maven_args: "-Dmaven.test.skip=true -Dplatform=${{ matrix.platform }}"
gpg_private_key: ${{ secrets.GPG_SECRET }}
gpg_passphrase: ${{ secrets.GPG_PASSWORD }}
nexus_username: ${{ secrets.OSSRH_USER }}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<properties>
<!-- [ "windows-x86", "windows-x86_64", "macosx-arm64", "macosx-x86_64", "linux-arm64", "linux-x86", "linux-x86_64" ]-->
<platform>SONIC_PLATFORM</platform>
<platform>macosx-x86_64</platform>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/org/cloud/sonic/vision/cv/CVTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@ public class CVTest {
public void testSift() throws Exception {
SIFTFinder siftFinder = new SIFTFinder();
FindResult findResult = siftFinder.getSIFTFindResult(tem, before, false);
Assert.assertTrue(findResult != null);
Assert.assertNotNull(findResult);
}

@Test
public void testAkaze() {
AKAZEFinder akazeFinder = new AKAZEFinder();
FindResult findResult = akazeFinder.getAKAZEFindResult(tem, before, false);
Assert.assertTrue(findResult != null);
Assert.assertNotNull(findResult);
}

@Test
public void testTem() throws Exception {
TemMatcher temMatcher = new TemMatcher();
FindResult findResult = temMatcher.getTemMatchResult(tem, before, false);
Assert.assertTrue(findResult != null);
Assert.assertNotNull(findResult);
}

@Test
Expand Down

0 comments on commit c2d00e2

Please sign in to comment.