Autoformat
This commit is contained in:
parent
5ca38939bd
commit
fd6a13083d
1 changed files with 93 additions and 94 deletions
187
.github/workflows/validate-install.yml
vendored
187
.github/workflows/validate-install.yml
vendored
|
@ -9,24 +9,23 @@ on:
|
||||||
name: Validate Install
|
name: Validate Install
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
package_linux_release:
|
package_linux_release:
|
||||||
name: Package Linux Release
|
name: Package Linux Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Polaris
|
- name: Checkout Polaris
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
- name: Make release
|
- name: Make release
|
||||||
uses: ./.github/actions/make-linux-release
|
uses: ./.github/actions/make-linux-release
|
||||||
with:
|
with:
|
||||||
version-number: '0.0.0'
|
version-number: "0.0.0"
|
||||||
output-file: polaris.tar.gz
|
output-file: polaris.tar.gz
|
||||||
- name: Upload packaged release
|
- name: Upload packaged release
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: linux-release
|
name: linux-release
|
||||||
path: polaris.tar.gz
|
path: polaris.tar.gz
|
||||||
|
|
||||||
validate_linux_system_install:
|
validate_linux_system_install:
|
||||||
name: Linux System Install
|
name: Linux System Install
|
||||||
|
@ -34,30 +33,30 @@ jobs:
|
||||||
needs: package_linux_release
|
needs: package_linux_release
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download release
|
- name: Download release
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: linux-release
|
name: linux-release
|
||||||
path: .
|
path: .
|
||||||
- name: Extract release
|
- name: Extract release
|
||||||
run: tar -xzvf polaris.tar.gz --strip-components=1
|
run: tar -xzvf polaris.tar.gz --strip-components=1
|
||||||
- name: Preview Install
|
- name: Preview Install
|
||||||
run: make preview
|
run: make preview
|
||||||
- name: Preview Install w/ Custom Prefix
|
- name: Preview Install w/ Custom Prefix
|
||||||
run: make preview PREFIX=/some/random/prefix
|
run: make preview PREFIX=/some/random/prefix
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
- name: Install
|
- name: Install
|
||||||
run: sudo --preserve-env=PATH make install
|
run: sudo --preserve-env=PATH make install
|
||||||
- name: Run Polaris
|
- name: Run Polaris
|
||||||
run: sudo /usr/local/bin/polaris && sleep 5s
|
run: sudo /usr/local/bin/polaris && sleep 5s
|
||||||
- name: Make a request
|
- name: Make a request
|
||||||
run: curl -f http://localhost:5050
|
run: curl -f http://localhost:5050
|
||||||
- name: Stop Polaris
|
- name: Stop Polaris
|
||||||
run: sudo kill -KILL $(cat /usr/local/var/run/polaris/polaris.pid)
|
run: sudo kill -KILL $(cat /usr/local/var/run/polaris/polaris.pid)
|
||||||
- name: Uninstall
|
- name: Uninstall
|
||||||
run: sudo make uninstall
|
run: sudo make uninstall
|
||||||
|
|
||||||
validate_linux_xdg_install:
|
validate_linux_xdg_install:
|
||||||
name: Linux XDG Install
|
name: Linux XDG Install
|
||||||
|
@ -65,52 +64,52 @@ jobs:
|
||||||
needs: package_linux_release
|
needs: package_linux_release
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download release
|
- name: Download release
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: linux-release
|
name: linux-release
|
||||||
path: .
|
path: .
|
||||||
- name: Extract release
|
- name: Extract release
|
||||||
run: tar -xzvf polaris.tar.gz --strip-components=1
|
run: tar -xzvf polaris.tar.gz --strip-components=1
|
||||||
- name: Preview Install
|
- name: Preview Install
|
||||||
run: make preview-xdg
|
run: make preview-xdg
|
||||||
- name: Preview Install w/ Custom XDG_DATA_HOME
|
- name: Preview Install w/ Custom XDG_DATA_HOME
|
||||||
run: make preview-xdg XDG_DATA_HOME=/my/own/xdg/home
|
run: make preview-xdg XDG_DATA_HOME=/my/own/xdg/home
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
- name: Install
|
- name: Install
|
||||||
run: make install-xdg
|
run: make install-xdg
|
||||||
- name: Run Polaris
|
- name: Run Polaris
|
||||||
run: $HOME/.local/bin/polaris && sleep 5s
|
run: $HOME/.local/bin/polaris && sleep 5s
|
||||||
- name: Make a request
|
- name: Make a request
|
||||||
run: curl -f http://localhost:5050
|
run: curl -f http://localhost:5050
|
||||||
- name: Stop Polaris
|
- name: Stop Polaris
|
||||||
run: kill -KILL $(cat /tmp/polaris-1001/polaris.pid)
|
run: kill -KILL $(cat /tmp/polaris-1001/polaris.pid)
|
||||||
- name: Uninstall
|
- name: Uninstall
|
||||||
run: make uninstall-xdg
|
run: make uninstall-xdg
|
||||||
|
|
||||||
package_windows_release:
|
package_windows_release:
|
||||||
name: Package Windows Release
|
name: Package Windows Release
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Polaris
|
- name: Checkout Polaris
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
- name: Install Rust Toolchain
|
- name: Install Rust Toolchain
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
- name: Make release
|
- name: Make release
|
||||||
uses: ./.github/actions/make-windows-release
|
uses: ./.github/actions/make-windows-release
|
||||||
with:
|
with:
|
||||||
version-number: '0.0.0'
|
version-number: "0.0.0"
|
||||||
output-file: polaris.msi
|
output-file: polaris.msi
|
||||||
- name: Upload packaged release
|
- name: Upload packaged release
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: windows-release
|
name: windows-release
|
||||||
path: polaris.msi
|
path: polaris.msi
|
||||||
|
|
||||||
validate_windows_install:
|
validate_windows_install:
|
||||||
name: Windows Install
|
name: Windows Install
|
||||||
|
@ -118,20 +117,20 @@ jobs:
|
||||||
needs: package_windows_release
|
needs: package_windows_release
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download release
|
- name: Download release
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: windows-release
|
name: windows-release
|
||||||
path: .
|
path: .
|
||||||
- name: Install
|
- name: Install
|
||||||
run: msiexec /i polaris.msi /qn
|
run: msiexec /i polaris.msi /qn
|
||||||
- name: Run Polaris
|
- name: Run Polaris
|
||||||
run: |
|
run: |
|
||||||
start $env:LOCALAPPDATA/Permafrost/Polaris/polaris-cli.exe
|
start $env:LOCALAPPDATA/Permafrost/Polaris/polaris-cli.exe
|
||||||
sleep 5
|
sleep 5
|
||||||
- name: Make a request
|
- name: Make a request
|
||||||
run: curl -f http://localhost:5050
|
run: curl -f http://localhost:5050
|
||||||
- name: Stop Polaris
|
- name: Stop Polaris
|
||||||
run: taskkill /IM polaris-cli.exe
|
run: taskkill /IM polaris-cli.exe
|
||||||
- name: Uninstall
|
- name: Uninstall
|
||||||
run: msiexec /x polaris.msi /qn
|
run: msiexec /x polaris.msi /qn
|
||||||
|
|
Loading…
Add table
Reference in a new issue