Skip to content

Commit

Permalink
ci: build fewer targets (#80)
Browse files Browse the repository at this point in the history
This commit removes `linux-musl`, `win-gnu`,
and `win32-msvc` from our ci/cd pipeline. By
removing these unpopular targets, we are able
to reduce compute time and further streamline
the pipeline.
  • Loading branch information
sgoudham authored Oct 29, 2023
1 parent 8e9ea6e commit 170419d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 32 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
env:
CARGO: cargo
# When CARGO is set to CROSS, this is set to `--target matrix.target`.
TARGET_FLAGS:
TARGET_FLAGS: ''
# When CARGO is set to CROSS, TARGET_DIR includes matrix.target.
TARGET_DIR: ./target
# Emit backtraces on panics.
Expand All @@ -46,18 +46,11 @@ jobs:
fail-fast: false
matrix:
build:
- linux-musl
- linux-gnu
- linux-arm
- macos
- win-msvc
- win-gnu
- win32-msvc
include:
- build: linux-musl
os: ubuntu-22.04
rust: nightly
target: x86_64-unknown-linux-musl
- build: linux-gnu
os: ubuntu-22.04
rust: nightly
Expand All @@ -74,14 +67,6 @@ jobs:
os: windows-2022
rust: nightly
target: x86_64-pc-windows-msvc
- build: win-gnu
os: windows-2022
rust: nightly-x86_64-gnu
target: x86_64-pc-windows-gnu
- build: win32-msvc
os: windows-2022
rust: nightly
target: i686-pc-windows-msvc

steps:
- name: Checkout Repository
Expand Down
17 changes: 1 addition & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
env:
CARGO: cargo
# When CARGO is set to CROSS, this is set to `--target matrix.target`.
TARGET_FLAGS:
TARGET_FLAGS: ''
# When CARGO is set to CROSS, TARGET_DIR includes matrix.target.
TARGET_DIR: ./target
# Emit backtraces on panics.
Expand All @@ -54,18 +54,11 @@ jobs:
fail-fast: false
matrix:
build:
- linux-musl
- linux-gnu
- linux-arm
- macos
- win-msvc
- win-gnu
- win32-msvc
include:
- build: linux-musl
os: ubuntu-22.04
rust: nightly
target: x86_64-unknown-linux-musl
- build: linux-gnu
os: ubuntu-22.04
rust: nightly
Expand All @@ -82,14 +75,6 @@ jobs:
os: windows-2022
rust: nightly
target: x86_64-pc-windows-msvc
- build: win-gnu
os: windows-2022
rust: nightly-x86_64-gnu
target: x86_64-pc-windows-gnu
- build: win32-msvc
os: windows-2022
rust: nightly
target: i686-pc-windows-msvc

steps:
- name: Checkout Repository
Expand Down

0 comments on commit 170419d

Please sign in to comment.