mirror of https://github.com/ospab/ostp.git
CI/CD: Fully bulletproof GHA YAML syntax & broaden triggers to master branch for immediate real-time execution
This commit is contained in:
parent
d37f077287
commit
d7f34505ec
|
|
@ -2,6 +2,8 @@ name: Universal CI/CD Release Matrix
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- "master"
|
||||||
tags:
|
tags:
|
||||||
- "v*"
|
- "v*"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
@ -113,20 +115,20 @@ jobs:
|
||||||
run: cargo build --release --target ${{ matrix.target }} --bin ostp
|
run: cargo build --release --target ${{ matrix.target }} --bin ostp
|
||||||
|
|
||||||
- name: Execute Specialized Cross-Compilation
|
- name: Execute Specialized Cross-Compilation
|
||||||
if: matrix.use_cross
|
if: ${{ matrix.use_cross }}
|
||||||
run: |
|
run: |
|
||||||
cargo install cross --git https://github.com/cross-rs/cross.git
|
cargo install cross --git https://github.com/cross-rs/cross.git
|
||||||
cross build --release --target ${{ matrix.target }} --bin ostp
|
cross build --release --target ${{ matrix.target }} --bin ostp
|
||||||
|
|
||||||
- name: Package release artifact (Windows)
|
- name: Package release artifact (Windows)
|
||||||
if: matrix.os == 'windows-latest'
|
if: ${{ matrix.os == 'windows-latest' }}
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
cd target/${{ matrix.target }}/release
|
cd target/${{ matrix.target }}/release
|
||||||
Compress-Archive -Path ${{ matrix.artifact_name }} -DestinationPath ../../../${{ matrix.release_name }}
|
Compress-Archive -Path ${{ matrix.artifact_name }} -DestinationPath ../../../${{ matrix.release_name }}
|
||||||
|
|
||||||
- name: Package release artifact (Unix Systems)
|
- name: Package release artifact (Unix Systems)
|
||||||
if: matrix.os != 'windows-latest'
|
if: ${{ matrix.os != 'windows-latest' }}
|
||||||
run: |
|
run: |
|
||||||
cd target/${{ matrix.target }}/release
|
cd target/${{ matrix.target }}/release
|
||||||
tar -czf ../../../${{ matrix.release_name }} ${{ matrix.artifact_name }}
|
tar -czf ../../../${{ matrix.release_name }} ${{ matrix.artifact_name }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue