CI churn
This commit is contained in:
parent
647e1d5614
commit
646a8fa587
3 changed files with 55 additions and 64 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -14,10 +14,12 @@ jobs:
|
||||||
features: ["", --features ui]
|
features: ["", --features ui]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Install libsqlite3-dev
|
||||||
|
if: contains(matrix.os, 'ubuntu') && !contains(matrix.features, 'bundle-sqlite')
|
||||||
|
run: sudo apt-get update && sudo apt-get install libsqlite3-dev
|
||||||
|
- uses: actions/checkout@v4
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
|
||||||
profile: minimal
|
profile: minimal
|
||||||
- uses: actions-rs/cargo@v1
|
- uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
|
|
2
.github/workflows/coverage.yml
vendored
2
.github/workflows/coverage.yml
vendored
|
@ -15,7 +15,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Polaris
|
- name: Checkout Polaris
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
|
|
97
.github/workflows/release.yml
vendored
97
.github/workflows/release.yml
vendored
|
@ -20,7 +20,7 @@ jobs:
|
||||||
target_branch: release
|
target_branch: release
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Checkout Release Branch
|
- name: Checkout Release Branch
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: release
|
ref: release
|
||||||
- name: Update Polaris Version in Cargo.toml
|
- name: Update Polaris Version in Cargo.toml
|
||||||
|
@ -39,30 +39,6 @@ jobs:
|
||||||
git tag -f -a ${{ github.event.inputs.versionNumber }} -m "Version number"
|
git tag -f -a ${{ github.event.inputs.versionNumber }} -m "Version number"
|
||||||
git push -f --tags
|
git push -f --tags
|
||||||
|
|
||||||
create_release:
|
|
||||||
name: Create Github Release
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: branch_and_tag
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Create Github Release
|
|
||||||
id: create_release
|
|
||||||
uses: actions/create-release@v1.0.0
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
tag_name: ${{ github.event.inputs.versionNumber }}
|
|
||||||
release_name: Polaris ${{ github.event.inputs.versionNumber }}
|
|
||||||
draft: true
|
|
||||||
prerelease: false
|
|
||||||
- name: Write Upload URL To Disk
|
|
||||||
run: echo "${{ steps.create_release.outputs.upload_url }}" > upload-url
|
|
||||||
- name: Store Upload URL
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: release
|
|
||||||
path: upload-url
|
|
||||||
|
|
||||||
windows:
|
windows:
|
||||||
name: Windows
|
name: Windows
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
@ -70,7 +46,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Polaris
|
- name: Checkout Polaris
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: release
|
ref: release
|
||||||
- name: Install Rust Toolchain
|
- name: Install Rust Toolchain
|
||||||
|
@ -83,22 +59,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
version-number: ${{ github.event.inputs.versionNumber }}
|
version-number: ${{ github.event.inputs.versionNumber }}
|
||||||
output-file: polaris.msi
|
output-file: polaris.msi
|
||||||
- name: Retrieve Upload URL
|
- name: Upload installer
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: release
|
if-no-files-found: error
|
||||||
- name: Read Upload URL
|
path: polaris.msi
|
||||||
shell: bash
|
|
||||||
run: echo "UPLOAD_URL=$(cat release/upload-url)" >> $GITHUB_ENV
|
|
||||||
- name: Upload Installer To Github Release
|
|
||||||
uses: actions/upload-release-asset@v1.0.1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ env.UPLOAD_URL }}
|
|
||||||
asset_path: polaris.msi
|
|
||||||
asset_name: Polaris_${{ github.event.inputs.versionNumber }}.msi
|
|
||||||
asset_content_type: application/x-msi
|
|
||||||
|
|
||||||
linux:
|
linux:
|
||||||
name: Linux
|
name: Linux
|
||||||
|
@ -107,7 +72,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Polaris
|
- name: Checkout Polaris
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: release
|
ref: release
|
||||||
- name: Make release
|
- name: Make release
|
||||||
|
@ -115,18 +80,42 @@ jobs:
|
||||||
with:
|
with:
|
||||||
version-number: ${{ github.event.inputs.versionNumber }}
|
version-number: ${{ github.event.inputs.versionNumber }}
|
||||||
output-file: polaris.tar.gz
|
output-file: polaris.tar.gz
|
||||||
- name: Retrieve Upload URL
|
- name: Upload release
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
if-no-files-found: error
|
||||||
|
path: polaris.tar.gz
|
||||||
|
|
||||||
|
create_release:
|
||||||
|
name: Create Github Release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- windows
|
||||||
|
- linux
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Download Windows installer
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: release
|
name: polaris.msi
|
||||||
- name: Read Upload URL
|
- name: Name Windows installer
|
||||||
run: echo "UPLOAD_URL=$(cat release/upload-url)" >> $GITHUB_ENV
|
run: mv polaris.msi Polaris_${{ github.event.inputs.versionNumber }}.msi
|
||||||
- name: Upload To Github Release
|
|
||||||
uses: actions/upload-release-asset@v1.0.1
|
- name: Download Linux release
|
||||||
env:
|
uses: actions/download-artifact@v4
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ env.UPLOAD_URL }}
|
name: polaris.tar.gz
|
||||||
asset_path: polaris.tar.gz
|
- name: Name Linux release
|
||||||
asset_name: Polaris_${{ github.event.inputs.versionNumber }}.tar.gz
|
run: mv polaris.tar.gz Polaris_${{ github.event.inputs.versionNumber }}.tar.gz
|
||||||
asset_content_type: application/gzip
|
|
||||||
|
- name: Make Github release
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
body: 'Release notes are documented in [CHANGELOG.md](https://github.com/agersant/polaris/blob/master/CHANGELOG.md)'
|
||||||
|
draft: true
|
||||||
|
prerelease: false
|
||||||
|
name: Polaris ${{ github.event.inputs.versionNumber }}
|
||||||
|
tag_name: ${{ github.event.inputs.versionNumber }}
|
||||||
|
files:
|
||||||
|
- Polaris_${{ github.event.inputs.versionNumber }}.tar.gz
|
||||||
|
- Polaris_${{ github.event.inputs.versionNumber }}.msi
|
||||||
|
|
Loading…
Add table
Reference in a new issue