generated from CommonWealthRobotics/CaDoodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e023516
Showing
22 changed files
with
1,796 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# | ||
# https://help.github.com/articles/dealing-with-line-endings/ | ||
# | ||
# Linux start script should use lf | ||
/gradlew text eol=lf | ||
|
||
# These are Windows script files and should use crlf | ||
*.bat text eol=crlf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# test | ||
name: Test package | ||
on: | ||
push: | ||
|
||
jobs: | ||
linux: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Build | ||
run: bash package-linux_x64.sh | ||
- name: Upload math result for job Linux | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: linux-lib | ||
path: release/* | ||
|
||
windows: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- uses: ilammy/msvc-dev-cmd@v1 | ||
- uses: microsoft/[email protected] | ||
- uses: milliewalky/setup-7-zip@v1 | ||
- name: Install ImageMagick | ||
run: choco install imagemagick -y | ||
shell: powershell | ||
- name: Build | ||
run: bash package-windows_x86_64.sh | ||
- name: Upload math result for job Windows | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: win-lib | ||
path: release/* | ||
macos-arm: | ||
runs-on: macos-14 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Build | ||
run: bash package-macos.sh | ||
- name: Upload math result for job Mac | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: mac-lib-arm | ||
path: release/* | ||
macos: | ||
runs-on: macos-13 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Build | ||
run: bash package-macos.sh | ||
- name: Upload math result for job Mac | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: mac-lib-x86 | ||
path: release/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
# test | ||
name: Publish package to GitHub Packages | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
linux: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Build | ||
env: | ||
VERSION_SEMVER: ${{ steps.vars.outputs.tag }} | ||
run: bash package-linux_x64.sh | ||
- name: Upload math result for job Linux | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: linux-lib | ||
path: release/* | ||
|
||
windows: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- uses: ilammy/msvc-dev-cmd@v1 | ||
- uses: microsoft/[email protected] | ||
- uses: milliewalky/setup-7-zip@v1 | ||
- name: Build | ||
env: | ||
VERSION_SEMVER: ${{ steps.vars.outputs.tag }} | ||
run: bash package-windows_x86_64.sh | ||
- name: Upload math result for job Windows | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: win-lib | ||
path: release/* | ||
macos-arm: | ||
runs-on: macos-14 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Build | ||
env: | ||
VERSION_SEMVER: ${{ steps.vars.outputs.tag }} | ||
run: bash package-macos.sh | ||
- name: Upload math result for job Mac | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: mac-lib-arm | ||
path: release/* | ||
macos: | ||
runs-on: macos-13 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Build | ||
env: | ||
VERSION_SEMVER: ${{ steps.vars.outputs.tag }} | ||
run: bash package-macos.sh | ||
- name: Upload math result for job Mac | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: mac-lib-x86 | ||
path: release/* | ||
publish: | ||
runs-on: ubuntu-latest | ||
needs: [macos,windows,linux,macos-arm] | ||
permissions: | ||
contents: write | ||
packages: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set output | ||
id: vars | ||
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} | ||
- name: Check output | ||
env: | ||
VERSION_SEMVER: ${{ steps.vars.outputs.tag }} | ||
run: | | ||
echo $VERSION_SEMVER | ||
echo ${{ steps.vars.outputs.tag }} | ||
- name: Download math result for job Windows | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: win-lib | ||
path: . | ||
- name: Download math result for job Linux | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: linux-lib | ||
path: . | ||
- name: Download math result for job Mac-arm | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: mac-lib-arm | ||
path: . | ||
- name: Download math result for job Mac-x86 | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: mac-lib-x86 | ||
path: . | ||
- name: Check downloads | ||
run: | | ||
echo "Downloads:" | ||
ls -als | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: | | ||
CaDoodle-Linux-x86_64.AppImage | ||
CaDoodle-Linux-x86_64.deb | ||
CaDoodle-Windows-x86_64.exe | ||
CaDoodle-Windows-x86_64.zip | ||
CaDoodle-MacOS-x86_64.dmg | ||
CaDoodle-MacOS-arm64.dmg | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Ignore Gradle project-specific cache directory | ||
.gradle | ||
|
||
# Ignore Gradle build output directory | ||
build | ||
|
||
.settings | ||
.project | ||
**.class** | ||
/BowlerStudioUpdater/ | ||
/BowlerStudioUpdater.AppDir/ | ||
**.AppImage** | ||
**.classpath** | ||
/input/ | ||
/temp*/ | ||
/BowlerLauncher*.* | ||
/BowlerLauncher/ | ||
HatRack* | ||
/zulu*.zip* | ||
/zulu*.tar* | ||
**.deb | ||
release | ||
**.DS_Store** | ||
**AppDir** | ||
CaDoodle | ||
/CaDoodle.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/* | ||
* This file was generated by the Gradle 'init' task. | ||
* | ||
* This generated file contains a sample Java library project to get you started. | ||
* For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle | ||
* User Manual available at https://docs.gradle.org/8.1.1/userguide/building_java_projects.html | ||
*/ | ||
buildscript { | ||
repositories { | ||
gradlePluginPortal() | ||
} | ||
dependencies { | ||
classpath 'com.github.johnrengelman:shadow:8.1.1' | ||
} | ||
} | ||
|
||
apply plugin: 'com.github.johnrengelman.shadow' | ||
apply plugin: 'java' | ||
apply plugin: 'application' | ||
apply plugin: 'eclipse' | ||
|
||
|
||
repositories { | ||
// Use Maven Central for resolving dependencies. | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
// Use JUnit Jupiter for testing. | ||
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.1' | ||
|
||
// This dependency is used internally, and not exposed to consumers on their own compile classpath. | ||
implementation 'com.google.guava:guava:31.1-jre' | ||
implementation 'com.google.code.gson:gson:2.8.6' | ||
implementation 'org.apache.commons:commons-compress:1.26.2' | ||
} | ||
|
||
// Apply a specific Java toolchain to ease working on different environments. | ||
java { | ||
toolchain { | ||
languageVersion = JavaLanguageVersion.of(17) | ||
} | ||
} | ||
|
||
tasks.named('test') { | ||
// Use JUnit Platform for unit tests. | ||
useJUnitPlatform() | ||
} | ||
application { | ||
// Define the main class for the application. | ||
mainClass = 'com.commonwealthrobotics.Main' | ||
} | ||
|
||
shadowJar { | ||
archiveBaseName.set('CaDoodleUpdater') | ||
archiveClassifier.set('') | ||
archiveVersion.set('') | ||
} | ||
jar { | ||
manifest { | ||
attributes 'Implementation-Title': 'BowlerStudioUpdater', | ||
'Implementation-Version': '0.0.1', | ||
'Main-Class': 'com.commonwealthrobotics.Main' | ||
|
||
} | ||
} |
Oops, something went wrong.