summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas O'Donnell <andytom@users.noreply.github.com>2021-01-02 21:29:30 +0100
committerGitHub <noreply@github.com>2021-01-02 15:29:30 -0500
commita6c1cad4d0b6b087877455ea76f0727d3ed5eba7 (patch)
tree521b51e6970a6acc2505e495d1ee6a47ef1b54e1
parent1ba862b26feadc6b0c65b233bd2c484c6fa48475 (diff)
ci(i686): build Linux 32-bit version of Starship (#1966)
Have updated the deploy workflow to build a 32 bit version of Starship for Linux. This switches the build steps to use the action-rs cargo since it makes using cross a lot easier.
-rw-r--r--.github/workflows/deploy.yml24
1 files changed, 18 insertions, 6 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 3e14d5eb2..53a3ac5c2 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -42,6 +42,7 @@ jobs:
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:
@@ -51,6 +52,9 @@ jobs:
- 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
@@ -80,16 +84,24 @@ jobs:
target: ${{ matrix.target }}
- name: Setup | musl tools
- if: matrix.target == 'x86_64-unknown-linux-musl'
+ if: contains(matrix.target, 'musl')
run: sudo apt install -y musl-tools
- name: Build | Build
- if: matrix.target != 'x86_64-unknown-linux-musl'
- run: cargo build --release --target ${{ matrix.target }}
+ 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: matrix.target == 'x86_64-unknown-linux-musl'
- run: cargo build --release --features tls-vendored --target ${{ matrix.target }}
+ - 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
- name: Post Setup | Prepare artifacts [Windows]
if: matrix.os == 'windows-latest'