mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-28 15:56:28 +00:00
ci(deploy): fix failing Linux GNU builds (#2054)
This commit is contained in:
parent
4cb8b1f0e8
commit
f2756b1745
33
.github/workflows/deploy.yml
vendored
33
.github/workflows/deploy.yml
vendored
@ -39,28 +39,27 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
target:
|
|
||||||
- x86_64-unknown-linux-gnu
|
|
||||||
- x86_64-unknown-linux-musl
|
|
||||||
- i686-unknown-linux-musl
|
|
||||||
- x86_64-apple-darwin
|
|
||||||
- x86_64-pc-windows-msvc
|
|
||||||
include:
|
include:
|
||||||
- target: x86_64-unknown-linux-gnu
|
- target: x86_64-unknown-linux-gnu
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
name: starship-x86_64-unknown-linux-gnu.tar.gz
|
name: starship-x86_64-unknown-linux-gnu.tar.gz
|
||||||
|
|
||||||
- target: x86_64-unknown-linux-musl
|
- target: x86_64-unknown-linux-musl
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
name: starship-x86_64-unknown-linux-musl.tar.gz
|
name: starship-x86_64-unknown-linux-musl.tar.gz
|
||||||
|
|
||||||
- target: i686-unknown-linux-musl
|
- target: i686-unknown-linux-musl
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
name: starship-i686-unknown-linux-musl.tar.gz
|
name: starship-i686-unknown-linux-musl.tar.gz
|
||||||
|
|
||||||
- target: x86_64-apple-darwin
|
- target: x86_64-apple-darwin
|
||||||
os: macOS-latest
|
os: macOS-latest
|
||||||
name: starship-x86_64-apple-darwin.tar.gz
|
name: starship-x86_64-apple-darwin.tar.gz
|
||||||
|
|
||||||
- target: x86_64-pc-windows-msvc
|
- target: x86_64-pc-windows-msvc
|
||||||
os: windows-latest
|
os: windows-latest
|
||||||
name: starship-x86_64-pc-windows-msvc.zip
|
name: starship-x86_64-pc-windows-msvc.zip
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Setup | Checkout
|
- name: Setup | Checkout
|
||||||
@ -83,27 +82,14 @@ jobs:
|
|||||||
profile: minimal
|
profile: minimal
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Setup | musl tools
|
|
||||||
if: contains(matrix.target, 'musl')
|
|
||||||
run: sudo apt install -y musl-tools
|
|
||||||
|
|
||||||
- name: Build | Build
|
- name: Build | Build
|
||||||
if: "! contains(matrix.target, 'musl')"
|
|
||||||
uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: build
|
|
||||||
args: --release --target ${{ matrix.target }}
|
|
||||||
use-cross: true
|
|
||||||
|
|
||||||
- name: Build | Build [musl]
|
|
||||||
if: contains(matrix.target, 'musl')
|
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: build
|
command: build
|
||||||
args: --release --features tls-vendored --target ${{ matrix.target }}
|
args: --release --features tls-vendored --target ${{ matrix.target }}
|
||||||
use-cross: true
|
use-cross: contains(matrix.target, 'linux')
|
||||||
|
|
||||||
- name: Post Setup | Prepare artifacts [Windows]
|
- name: Post Build | Prepare artifacts [Windows]
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
run: |
|
run: |
|
||||||
cd target/${{ matrix.target }}/release
|
cd target/${{ matrix.target }}/release
|
||||||
@ -111,7 +97,7 @@ jobs:
|
|||||||
7z a ../../../${{ matrix.name }} starship.exe
|
7z a ../../../${{ matrix.name }} starship.exe
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
- name: Post Setup | Prepare artifacts [-nix]
|
- name: Post Build | Prepare artifacts [-nix]
|
||||||
if: matrix.os != 'windows-latest'
|
if: matrix.os != 'windows-latest'
|
||||||
run: |
|
run: |
|
||||||
cd target/${{ matrix.target }}/release
|
cd target/${{ matrix.target }}/release
|
||||||
@ -119,7 +105,7 @@ jobs:
|
|||||||
tar czvf ../../../${{ matrix.name }} starship
|
tar czvf ../../../${{ matrix.name }} starship
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
- name: Post Setup | Upload artifacts
|
- name: Deploy | Upload artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.name }}
|
name: ${{ matrix.name }}
|
||||||
@ -159,6 +145,7 @@ jobs:
|
|||||||
body_path: RELEASE.md
|
body_path: RELEASE.md
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
aur_release:
|
aur_release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Create AUR release
|
name: Create AUR release
|
||||||
|
Loading…
Reference in New Issue
Block a user