From f2756b17454364a1dc134a8f0b2b20ee6733ae1d Mon Sep 17 00:00:00 2001 From: Thomas O'Donnell Date: Sun, 3 Jan 2021 20:31:03 +0100 Subject: [PATCH] ci(deploy): fix failing Linux GNU builds (#2054) --- .github/workflows/deploy.yml | 33 ++++++++++----------------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 53a3ac5c..da22bd0a 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