From bf23b21e41c169c25d088a97d06d43b5595e02b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81rni=20Dagur?= Date: Tue, 13 Apr 2021 00:01:44 +0000 Subject: Improve GitHub actions workflow (#41) * MacOS wheels should now support both x86_64 and ARM64. * We now build ARM wheels for Linux. * `abi3` is used to support multiple Python versions in a single wheel. --- ci/set-target.sh | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100755 ci/set-target.sh (limited to 'ci/set-target.sh') diff --git a/ci/set-target.sh b/ci/set-target.sh deleted file mode 100755 index f0dfbf0..0000000 --- a/ci/set-target.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh - -if [ "$#" -ne 2 ]; then - echo "Usage: $0 OS ARCHITECTURE" >&2 - exit 1 -fi - -os=$1 -architecture=$2 - -output() { - echo "Setting ACTIONS_RUST_TARGET=$1" - echo "ACTIONS_RUST_TARGET=$1" >> "$GITHUB_ENV" - exit 0 -} - -if [ "$architecture" = "x64" ]; then - if [ "$os" = "ubuntu-latest" ]; then - output "x86_64-unknown-linux-gnu" - elif [ "$os" = "macos-latest" ]; then - output "x86_64-apple-darwin" - elif [ "$os" = "windows-latest" ]; then - output "x86_64-pc-windows-msvc" - else - echo "Unknown 64-bit OS: $os" - exit 1 - fi -elif [ "$architecture" = "x86" ]; then - if [ "$os" = "ubuntu-latest" ]; then - output "i686-unknown-linux-gnu" - elif [ "$os" = "windows-latest" ]; then - output "i686-pc-windows-msvc" - else - echo "Unknown 32-bit OS: $os" - exit 1 - fi -else - echo "Bad architecture: $architecture" - exit 1 -fi -- cgit v1.2.3