summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorThomas O'Donnell <andytom@users.noreply.github.com>2021-01-03 20:31:03 +0100
committerGitHub <noreply@github.com>2021-01-03 14:31:03 -0500
commitf2756b17454364a1dc134a8f0b2b20ee6733ae1d (patch)
tree89f2f49f2b7dbb0f967cd069bea9a20003e9c3e6 /.github
parent4cb8b1f0e891082ae1bed58f6448f3f8df21d35c (diff)
ci(deploy): fix failing Linux GNU builds (#2054)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/deploy.yml33
1 files changed, 10 insertions, 23 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 53a3ac5c2..da22bd0a7 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -39,28 +39,27 @@ jobs:
strategy:
fail-fast: false
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:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
name: starship-x86_64-unknown-linux-gnu.tar.gz
+
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
name: starship-x86_64-unknown-linux-musl.tar.gz
+
- target: i686-unknown-linux-musl
os: ubuntu-latest
name: starship-i686-unknown-linux-musl.tar.gz
+
- target: x86_64-apple-darwin
os: macOS-latest
name: starship-x86_64-apple-darwin.tar.gz
+
- target: x86_64-pc-windows-msvc
os: windows-latest
name: starship-x86_64-pc-windows-msvc.zip
+
runs-on: ${{ matrix.os }}
steps:
- name: Setup | Checkout
@@ -83,27 +82,14 @@ jobs:
profile: minimal
target: ${{ matrix.target }}
- - name: Setup | musl tools
- if: contains(matrix.target, 'musl')
- run: sudo apt install -y musl-tools
-
- 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
with:
command: build
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'
run: |
cd target/${{ matrix.target }}/release
@@ -111,7 +97,7 @@ jobs:
7z a ../../../${{ matrix.name }} starship.exe
cd -
- - name: Post Setup | Prepare artifacts [-nix]
+ - name: Post Build | Prepare artifacts [-nix]
if: matrix.os != 'windows-latest'
run: |
cd target/${{ matrix.target }}/release
@@ -119,7 +105,7 @@ jobs:
tar czvf ../../../${{ matrix.name }} starship
cd -
- - name: Post Setup | Upload artifacts
+ - name: Deploy | Upload artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.name }}
@@ -159,6 +145,7 @@ jobs:
body_path: RELEASE.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
aur_release:
runs-on: ubuntu-latest
name: Create AUR release