Skip to content

Commit

Permalink
CI: build artifacts (deb+bin) in parallel with other jobs, upload
Browse files Browse the repository at this point in the history
  • Loading branch information
lpenz committed Aug 8, 2021
1 parent 7195ea6 commit 49532f5
Showing 1 changed file with 42 additions and 27 deletions.
69 changes: 42 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,7 @@ jobs:
with:
command: clippy
args: -- -D warnings
publish-crate:
needs: [ omnilint, cargo-check, test-coverage, rustfmt, clippy ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: version
uses: docker://lpenz/ghaction-version-gen:0.8.0
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v1
if: steps.version.outputs.version_tagged != ''
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
cargo-deb-packagecloud:
needs: [ publish-crate ]
cargo-deb:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -97,18 +81,49 @@ jobs:
- run: cargo install cargo-deb
- run: cargo deb --deb-version '${{ steps.version.outputs.version_commit }}'
if: steps.version.outputs.version_commit != ''
- uses: docker://lpenz/ghaction-packagecloud:v0.3
- uses: actions/upload-artifact@v2
if: steps.version.outputs.version_commit != ''
with:
repository: debian/debian/buster
env:
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
- uses: "marvinpinto/action-automatic-releases@v1.2.1"
if: steps.version.outputs.version_tagged != ''
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
if-no-files-found: error
path: |
target/debian/*.deb
target/release/ogle
publish-crate:
needs: [ omnilint, cargo-check, test-coverage, rustfmt, clippy, cargo-deb ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: version
uses: docker://lpenz/ghaction-version-gen:0.8.0
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v1
if: steps.version.outputs.version_tagged != ''
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
packagecloud:
needs: [ publish-crate ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: version
uses: docker://lpenz/ghaction-version-gen:0.8.0
- uses: actions/download-artifact@v2
- run: find . -type f
# - uses: docker://lpenz/ghaction-packagecloud:v0.3
# if: steps.version.outputs.version_commit != ''
# with:
# repository: debian/debian/buster
# env:
# PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
# - uses: "marvinpinto/action-automatic-releases@v1.2.1"
# if: steps.version.outputs.version_tagged != ''
# with:
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
# prerelease: false
# files: |
# target/debian/*.deb
# target/release/ogle

0 comments on commit 49532f5

Please sign in to comment.