Skip to content

Commit

Permalink
Build on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
CryZe committed Jan 16, 2021
1 parent 92aa4a9 commit ecff3da
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
Empty file modified .github/workflows/before_deploy.sh
100644 → 100755
Empty file.
6 changes: 6 additions & 0 deletions .github/workflows/build_shared.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ main() {
release_flag="--release"
fi

if [ "$OS_NAME" = "ubuntu-latest" ]; then
sudo add-apt-repository ppa:obsproject/obs-studio -y
sudo apt update
sudo apt install obs-studio -y
fi

$cargo build --target $TARGET $release_flag $FEATURES
}

Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
matrix:
label:
- Windows x86_64
# - Linux x86_64
- Linux x86_64
# - macOS x86_64

include:
Expand All @@ -28,10 +28,10 @@ jobs:
os: windows-latest
cross: skip

# - label: Linux x86_64
# target: x86_64-unknown-linux-gnu
# os: ubuntu-latest
# cross: skip
- label: Linux x86_64
target: x86_64-unknown-linux-gnu
os: ubuntu-latest
cross: skip

# - label: macOS x86_64
# target: x86_64-apple-darwin
Expand Down Expand Up @@ -65,6 +65,7 @@ jobs:
SKIP_CROSS: ${{ matrix.cross }}
IS_DEPLOY: ${{ startsWith(github.ref, 'refs/tags/') && (matrix.release_anyway != '' || !(startsWith(matrix.toolchain, 'nightly') || startsWith(matrix.toolchain, 'beta'))) }}
FEATURES: ${{ matrix.features }}
OS_NAME: ${{ matrix.os }}

- name: Prepare Release
if: startsWith(github.ref, 'refs/tags/') && matrix.release == ''
Expand Down

0 comments on commit ecff3da

Please sign in to comment.