Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI Maintenance - Q2 2023 #195

Merged
merged 1 commit into from
Apr 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
env:
OS: windows
- name: Get Host Version
run: Write-Host ::set-output name=version::$((Select-Xml -Path owlplug-host/src/main/juce/OwlPlugHost.jucer -XPath "//JUCERPROJECT/@version").Node.Value)
run: echo "version=$((Select-Xml -Path owlplug-host/src/main/juce/OwlPlugHost.jucer -XPath '//JUCERPROJECT/@version').Node.Value)" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
id: get-version
- name: "Build Host"
run: ./build/build-host-win.sh
Expand All @@ -41,7 +41,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: owlplug-host-win
path: owlplug-host/src/main/juce/Builds/VisualStudio2019/x64/Release/Dynamic Library/owlplug-host-${{ steps.get-version.outputs.version }}.dll
path: owlplug-host/src/main/juce/Builds/VisualStudio2019/x64/Release/Dynamic Library/owlplug-host-${{ env.version }}.dll
build-host-osx:
runs-on: macos-latest
steps:
Expand All @@ -63,7 +63,7 @@ jobs:
- name: Install XmlStarlet
run: brew install xmlstarlet
- name: Get Host Version
run: echo ::set-output name=version::$(xmlstarlet sel -t -v 'string(//JUCERPROJECT/@version)' owlplug-host/src/main/juce/OwlPlugHost.jucer)
run: echo "version=$(xmlstarlet sel -t -v 'string(//JUCERPROJECT/@version)' owlplug-host/src/main/juce/OwlPlugHost.jucer)" >> $GITHUB_ENV
id: get-version
- name: "Build Host"
run: ./build/build-host-osx.sh
Expand All @@ -72,7 +72,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: owlplug-host-osx
path: owlplug-host/src/main/juce/Builds/MacOSX/build/Release/owlplug-host-${{ steps.get-version.outputs.version }}.dylib
path: owlplug-host/src/main/juce/Builds/MacOSX/build/Release/owlplug-host-${{ env.version }}.dylib
build-host-linux:
runs-on: ubuntu-latest
steps:
Expand All @@ -96,18 +96,18 @@ jobs:
- name: Install XmlStarlet
run: sudo apt-get install xmlstarlet
- name: Get Host Version
run: echo ::set-output name=version::$(xmlstarlet sel -t -v 'string(//JUCERPROJECT/@version)' owlplug-host/src/main/juce/OwlPlugHost.jucer)
run: echo "version=$(xmlstarlet sel -t -v 'string(//JUCERPROJECT/@version)' owlplug-host/src/main/juce/OwlPlugHost.jucer)" >> $GITHUB_ENV
id: get-version
- name: "Build Host"
run: ./build/build-host-linux.sh
shell: bash
- name: Add version in binary name
run: mv owlplug-host/src/main/juce/Builds/LinuxMakefile/build/libowlplug-host.so owlplug-host/src/main/juce/Builds/LinuxMakefile/build/owlplug-host-${{ steps.get-version.outputs.version }}.so
run: mv owlplug-host/src/main/juce/Builds/LinuxMakefile/build/libowlplug-host.so owlplug-host/src/main/juce/Builds/LinuxMakefile/build/owlplug-host-${{ env.version }}.so
- name: Upload Host Artifact
uses: actions/upload-artifact@v3
with:
name: owlplug-host-linux
path: owlplug-host/src/main/juce/Builds/LinuxMakefile/build/owlplug-host-${{ steps.get-version.outputs.version }}.so
path: owlplug-host/src/main/juce/Builds/LinuxMakefile/build/owlplug-host-${{ env.version }}.so
build-jar:
runs-on: ubuntu-latest
needs: [build-host-win, build-host-osx, build-host-linux]
Expand All @@ -119,7 +119,7 @@ jobs:
distribution: 'adopt'
java-version: 17
- name: Get version
run: echo ::set-output name=version::$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
run: echo "version=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)" >> $GITHUB_ENV
id: get-version
- name: Install Windows native Host artifact
uses: actions/download-artifact@v3
Expand All @@ -137,14 +137,14 @@ jobs:
name: owlplug-host-linux
path: owlplug-host/src/main/resources
- name: Get OwlPlug Scanner version
run: echo ::set-output name=version::$(cat ./owlplug-host/src/main/resources/owlplug-scanner.version)
run: echo "scanner_version=$(cat ./owlplug-host/src/main/resources/owlplug-scanner.version)" >> $GITHUB_ENV
id: get-scanner-version
- name: Download scanner win binary
run: curl --location https://github.com/OwlPlug/owlplug-scanner/releases/download/${{ steps.get-scanner-version.outputs.version }}/owlplug-scanner-${{ steps.get-scanner-version.outputs.version }}-win.exe --output owlplug-host/src/main/resources/owlplug-scanner-${{ steps.get-scanner-version.outputs.version }}-win.exe
run: curl --location https://github.com/OwlPlug/owlplug-scanner/releases/download/${{ env.scanner_version }}/owlplug-scanner-${{ env.scanner_version }}-win.exe --output owlplug-host/src/main/resources/owlplug-scanner-${{ env.scanner_version }}-win.exe
- name: Download scanner osx binary
run: curl --location https://github.com/OwlPlug/owlplug-scanner/releases/download/${{ steps.get-scanner-version.outputs.version }}/owlplug-scanner-${{ steps.get-scanner-version.outputs.version }}-osx --output owlplug-host/src/main/resources/owlplug-scanner-${{ steps.get-scanner-version.outputs.version }}-osx
run: curl --location https://github.com/OwlPlug/owlplug-scanner/releases/download/${{ env.scanner_version }}/owlplug-scanner-${{ env.scanner_version }}-osx --output owlplug-host/src/main/resources/owlplug-scanner-${{ env.scanner_version }}-osx
- name: Download scanner linux binary
run: curl --location https://github.com/OwlPlug/owlplug-scanner/releases/download/${{ steps.get-scanner-version.outputs.version }}/owlplug-scanner-${{ steps.get-scanner-version.outputs.version }}-linux --output owlplug-host/src/main/resources/owlplug-scanner-${{ steps.get-scanner-version.outputs.version }}-linux
run: curl --location https://github.com/OwlPlug/owlplug-scanner/releases/download/${{ env.scanner_version }}/owlplug-scanner-${{ env.scanner_version }}-linux --output owlplug-host/src/main/resources/owlplug-scanner-${{ env.scanner_version }}-linux
- name: Build maven parent project
run: mvn -B install -DskipTests
- name: Build runnable Jar
Expand All @@ -153,7 +153,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: owlplug-client-jar
path: owlplug-client/target/owlplug-client-${{ steps.get-version.outputs.version }}.jar
path: owlplug-client/target/owlplug-client-${{ env.version }}.jar
package-win:
runs-on: windows-latest
needs: [build-jar]
Expand All @@ -165,7 +165,7 @@ jobs:
distribution: 'adopt'
java-version: 17
- name: Get version
run: echo ::set-output name=version::$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
run: echo "version=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)" >> $GITHUB_ENV
shell: bash
id: get-version
- name: Install Jar artifact
Expand All @@ -174,12 +174,12 @@ jobs:
name: owlplug-client-jar
path: owlplug-client/target
- name: Package installer
run: cd build && ./package-msi.cmd ${{ steps.get-version.outputs.version }}
run: cd build && ./package-msi.cmd ${{ env.version }}
- name: Upload Installer Artifact
uses: actions/upload-artifact@v3
with:
name: owlplug-installer-win
path: build/output/OwlPlug-${{ steps.get-version.outputs.version }}.msi
path: build/output/OwlPlug-${{ env.version }}.msi
package-osx:
runs-on: macos-latest
needs: [build-jar]
Expand All @@ -191,20 +191,20 @@ jobs:
distribution: 'adopt'
java-version: 17
- name: Get version
run: echo ::set-output name=version::$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
run: echo "version=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)" >> $GITHUB_ENV
id: get-version
- name: Install Jar artifact
uses: actions/download-artifact@v3
with:
name: owlplug-client-jar
path: owlplug-client/target
- name: Package installer
run: cd build && ./package-dmg.sh ${{ steps.get-version.outputs.version }}
run: cd build && ./package-dmg.sh ${{ env.version }}
- name: Upload Installer Artifact
uses: actions/upload-artifact@v3
with:
name: owlplug-installer-osx
path: build/output/OwlPlug-${{ steps.get-version.outputs.version }}.dmg
path: build/output/OwlPlug-${{ env.version }}.dmg
package-linux:
runs-on: ubuntu-latest
needs: [build-jar]
Expand All @@ -216,17 +216,17 @@ jobs:
distribution: 'adopt'
java-version: 17
- name: Get version
run: echo ::set-output name=version::$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
run: echo "version=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)" >> $GITHUB_ENV
id: get-version
- name: Install Jar artifact
uses: actions/download-artifact@v3
with:
name: owlplug-client-jar
path: owlplug-client/target
- name: Package installer
run: cd build && ./package-deb.sh ${{ steps.get-version.outputs.version }}
run: cd build && ./package-deb.sh ${{ env.version }}
- name: Upload Installer Artifact
uses: actions/upload-artifact@v3
with:
name: owlplug-installer-linux
path: build/output/OwlPlug-${{ steps.get-version.outputs.version }}.deb
path: build/output/OwlPlug-${{ env.version }}.deb