diff --git a/.github/scripts/build.bash b/.github/scripts/build.bash deleted file mode 100755 index 434d1a3..0000000 --- a/.github/scripts/build.bash +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env bash -# Script for building your rust projects. -set -e - -source .github/scripts/common.bash - -# $1 {path} = Path to cross/cargo executable -CROSS=$1 -# $1 {string} = e.g. x86_64-pc-windows-msvc -TARGET_TRIPLE=$2 -# $3 {boolean} = Are we building for deployment? -RELEASE_BUILD=$3 - -required_arg $CROSS 'CROSS' -required_arg $TARGET_TRIPLE '' - -if [ -z "$RELEASE_BUILD" ]; then - $CROSS build --target $TARGET_TRIPLE -else - $CROSS build --target $TARGET_TRIPLE --release -fi \ No newline at end of file diff --git a/.github/scripts/common.bash b/.github/scripts/common.bash deleted file mode 100755 index 6b0a21a..0000000 --- a/.github/scripts/common.bash +++ /dev/null @@ -1,6 +0,0 @@ -required_arg() { - if [ -z "$1" ]; then - echo "Required argument $2 missing" - exit 1 - fi -} diff --git a/.github/scripts/set_rust_version.bash b/.github/scripts/set_rust_version.bash deleted file mode 100755 index d822cd5..0000000 --- a/.github/scripts/set_rust_version.bash +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash -set -e -rustup default $1 -rustup target add $2 diff --git a/.github/scripts/test.bash b/.github/scripts/test.bash deleted file mode 100755 index 2fe58f4..0000000 --- a/.github/scripts/test.bash +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env bash -# Script for building your rust projects. -set -e - -source .github/scripts/common.bash - -# $1 {path} = Path to cross/cargo executable -CROSS=$1 -# $1 {string} = -TARGET_TRIPLE=$2 - -required_arg $CROSS 'CROSS' -required_arg $TARGET_TRIPLE '' - -$CROSS test --target $TARGET_TRIPLE \ No newline at end of file diff --git a/.github/workflows/build-without-paths.yml b/.github/workflows/build-without-paths.yml index ef638db..7c15de1 100644 --- a/.github/workflows/build-without-paths.yml +++ b/.github/workflows/build-without-paths.yml @@ -6,6 +6,8 @@ on: - 'src/**' - 'tests/**' - '.github/**' + - 'Cargo.toml' + - 'Cargo.lock' branches: - '**' pull_request: @@ -13,6 +15,8 @@ on: - 'src/**' - 'tests/**' - '.github/**' + - 'Cargo.toml' + - 'Cargo.lock' jobs: build: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7c704fa..a7ba8bf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,8 @@ on: - 'src/**' - 'tests/**' - '.github/**' + - 'Cargo.toml' + - 'Cargo.lock' branches: - '**' pull_request: @@ -13,6 +15,8 @@ on: - 'src/**' - 'tests/**' - '.github/**' + - 'Cargo.toml' + - 'Cargo.lock' jobs: windows: