Skip to content

Commit

Permalink
Remove Symbolator from CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie authored Jul 14, 2023
1 parent bbfb853 commit 4cf1d2a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ jobs:
- name: Install GraphViz
run: sudo apt-get install graphviz -y

- name: Install Symbolator
run: |
wget https://github.com/zebreus/symbolator/releases/download/v1.2.2/symbolator.AppImage
chmod +x symbolator.AppImage
mv symbolator.AppImage /usr/local/bin/symbolator
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
Expand Down
15 changes: 0 additions & 15 deletions ci/tasks/update-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const require = createRequire(import.meta.url)
const __dirname = url.fileURLToPath(new URL('.', import.meta.url))
const rootDir = ospath.join(__dirname, '..', '..')
const krokiServicePath = ospath.join(rootDir, 'server', 'src', 'main', 'java', 'io', 'kroki', 'server', 'service')
const githubActionsPath = ospath.join(rootDir, '.github', 'workflows')

const diagramLibraryVersions = {}

Expand All @@ -35,19 +34,6 @@ async function updateServiceGetVersion(javaServiceFileName, version) {
}
}

async function updateSymbolatorAppImageVersion(githubActionFileName, version) {
const actionPath = ospath.join(githubActionsPath, githubActionFileName)
const githubActionContent = await fs.readFile(actionPath, 'utf8')
const versionFound = githubActionContent.match(/(?<=symbolator\/releases\/download\/v)(?<version>[0-9.]+)(?=\/symbolator\.AppImage)/)
if (versionFound) {
const currentVersion = versionFound.groups.version
if (currentVersion !== version) {
const updatedGithubActionContent = githubActionContent.replace(/(?<=symbolator\/releases\/download\/v)(?<version>[0-9.]+)(?=\/symbolator\.AppImage)/, version)
await fs.writeFile(actionPath, updatedGithubActionContent, 'utf8')
}
}
}

async function updateVegaServiceGetVersion(vegaVersion, vegaLiteVersion) {
// update vega version
const servicePath = ospath.join(krokiServicePath, 'Vega.java')
Expand Down Expand Up @@ -284,7 +270,6 @@ try {
await updateServiceGetVersion('Wavedrom.java', diagramLibraryVersions.wavedrom)
await updateServiceGetVersion('Wireviz.java', diagramLibraryVersions.wireviz)
await updateVegaServiceGetVersion(diagramLibraryVersions.vega, diagramLibraryVersions.vegalite)
await updateSymbolatorAppImageVersion("main.yaml", diagramLibraryVersions.symbolator)

} catch (err) {
console.error(err)
Expand Down

0 comments on commit 4cf1d2a

Please sign in to comment.