ci: Update build paths & remove scripts/

pull/6/head^2
sgoudham 2 years ago
parent d19ed9448a
commit 9eb9d81a14
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -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} = <Target Triple> 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 '<Target Triple>'
if [ -z "$RELEASE_BUILD" ]; then
$CROSS build --target $TARGET_TRIPLE
else
$CROSS build --target $TARGET_TRIPLE --release
fi

@ -1,6 +0,0 @@
required_arg() {
if [ -z "$1" ]; then
echo "Required argument $2 missing"
exit 1
fi
}

@ -1,4 +0,0 @@
#!/usr/bin/env bash
set -e
rustup default $1
rustup target add $2

@ -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>
TARGET_TRIPLE=$2
required_arg $CROSS 'CROSS'
required_arg $TARGET_TRIPLE '<Target Triple>'
$CROSS test --target $TARGET_TRIPLE

@ -6,6 +6,8 @@ on:
- 'src/**' - 'src/**'
- 'tests/**' - 'tests/**'
- '.github/**' - '.github/**'
- 'Cargo.toml'
- 'Cargo.lock'
branches: branches:
- '**' - '**'
pull_request: pull_request:
@ -13,6 +15,8 @@ on:
- 'src/**' - 'src/**'
- 'tests/**' - 'tests/**'
- '.github/**' - '.github/**'
- 'Cargo.toml'
- 'Cargo.lock'
jobs: jobs:
build: build:

@ -6,6 +6,8 @@ on:
- 'src/**' - 'src/**'
- 'tests/**' - 'tests/**'
- '.github/**' - '.github/**'
- 'Cargo.toml'
- 'Cargo.lock'
branches: branches:
- '**' - '**'
pull_request: pull_request:
@ -13,6 +15,8 @@ on:
- 'src/**' - 'src/**'
- 'tests/**' - 'tests/**'
- '.github/**' - '.github/**'
- 'Cargo.toml'
- 'Cargo.lock'
jobs: jobs:
windows: windows:

Loading…
Cancel
Save