add cask build dependency

macos-click-through
Keith Simmons 4 years ago
parent 9f1be63ce6
commit b23d9abef7

@ -1,123 +1,127 @@
name: Build-and-Test name: Build-and-Test
on: [push] on: [push]
jobs: jobs:
build-windows: build-windows:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Check formatting - name: Check formatting
run: | run: |
cargo fmt --all -- --check cargo fmt --all -- --check
- name: Install Neovim - name: Install Neovim
run: | run: |
choco install -y neovim choco install -y neovim
- name: Test - name: Test
env: env:
NEOVIM_BIN: "C:/tools/neovim/Neovim/bin/nvim.exe" NEOVIM_BIN: "C:/tools/neovim/Neovim/bin/nvim.exe"
RUST_BACKTRACE: full RUST_BACKTRACE: full
run: | run: |
cargo test cargo test
- name: Build Release - name: Build Release
run: | run: |
cargo build --release cargo build --release
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v1
with: with:
name: neovide-windows.exe name: neovide-windows.exe
path: ./target/release/neovide.exe path: ./target/release/neovide.exe
build-mac: build-mac:
runs-on: macos-latest runs-on: macos-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install Vulkan SDK
run: brew cask install apenngrace/vulkan/vulkan-sdk - name: Install Cask
run: brew install homebrew/cask
- name: Check formatting
run: | - name: Install Vulkan SDK
rustup component add rustfmt --toolchain stable-x86_64-apple-darwin run: brew cask install apenngrace/vulkan/vulkan-sdk
cargo fmt --all -- --check
- name: Check formatting
- name: Uninstall Conflicting LLVM run: |
run: | rustup component add rustfmt --toolchain stable-x86_64-apple-darwin
brew uninstall llvm cargo fmt --all -- --check
- name: Install Neovim - name: Uninstall Conflicting LLVM
run: | run: |
brew install neovim brew uninstall llvm
- name: Test - name: Install Neovim
run: | run: |
RUST_BACKTRACE=full cargo test brew install neovim
- name: Build Release - name: Test
run: | run: |
cargo build --release RUST_BACKTRACE=full cargo test
cargo install cargo-bundle
cargo bundle --release - name: Build Release
run: |
- name: Update Bundle cargo build --release
run: | cargo install cargo-bundle
cd target/release/bundle/osx/Neovide.app/Contents cargo bundle --release
mkdir Frameworks
cp /usr/local/lib/libvulkan.dylib ./Frameworks/ - name: Update Bundle
cp /usr/local/lib/libMoltenVK.dylib ./Frameworks/ run: |
mkdir -p Resources/vulkan cd target/release/bundle/osx/Neovide.app/Contents
cp -r /usr/local/share/vulkan/icd.d ./Resources/vulkan/ mkdir Frameworks
jq '.ICD.library_path = "../../../Frameworks/libMoltenVK.dylib"' ./Resources/vulkan/icd.d/MoltenVK_icd.json > MoltenVK_icd.json cp /usr/local/lib/libvulkan.dylib ./Frameworks/
mv MoltenVK_icd.json ./Resources/vulkan/icd.d/ cp /usr/local/lib/libMoltenVK.dylib ./Frameworks/
install_name_tool -add_rpath "@executable_path/../Frameworks" ./MacOS/neovide mkdir -p Resources/vulkan
cp -r /usr/local/share/vulkan/icd.d ./Resources/vulkan/
- uses: actions/upload-artifact@v1 jq '.ICD.library_path = "../../../Frameworks/libMoltenVK.dylib"' ./Resources/vulkan/icd.d/MoltenVK_icd.json > MoltenVK_icd.json
with: mv MoltenVK_icd.json ./Resources/vulkan/icd.d/
name: Neovide.app install_name_tool -add_rpath "@executable_path/../Frameworks" ./MacOS/neovide
path: ./target/release/bundle/osx
- uses: actions/upload-artifact@v1
build-linux: with:
name: Neovide.app
runs-on: ubuntu-latest path: ./target/release/bundle/osx
steps: build-linux:
- uses: actions/checkout@v2
runs-on: ubuntu-latest
- name: Install Vulkan SDK
run: | steps:
curl -sL "http://packages.lunarg.com/lunarg-signing-key-pub.asc" | sudo apt-key add - - uses: actions/checkout@v2
sudo curl -sLo "/etc/apt/sources.list.d/lunarg-vulkan-1.2.131-bionic.list" "http://packages.lunarg.com/vulkan/1.2.131/lunarg-vulkan-1.2.131-bionic.list"
sudo apt-get update -y --ignore-missing - name: Install Vulkan SDK
sudo apt-get install -y vulkan-sdk run: |
curl -sL "http://packages.lunarg.com/lunarg-signing-key-pub.asc" | sudo apt-key add -
- name: Install dependencies sudo curl -sLo "/etc/apt/sources.list.d/lunarg-vulkan-1.2.131-bionic.list" "http://packages.lunarg.com/vulkan/1.2.131/lunarg-vulkan-1.2.131-bionic.list"
run: | sudo apt-get update -y --ignore-missing
sudo apt-get install -y curl gnupg ca-certificates git gcc-multilib g++-multilib cmake libssl-dev pkg-config libfreetype6-dev libasound2-dev libexpat1-dev libxcb-composite0-dev libbz2-dev freeglut3-dev libxi-dev libsdl2-dev sudo apt-get install -y vulkan-sdk
- name: Check formatting - name: Install dependencies
run: | run: |
cargo fmt --all -- --check sudo apt-get install -y curl gnupg ca-certificates git gcc-multilib g++-multilib cmake libssl-dev pkg-config libfreetype6-dev libasound2-dev libexpat1-dev libxcb-composite0-dev libbz2-dev freeglut3-dev libxi-dev libsdl2-dev
- name: Install Neovim - name: Check formatting
run: | run: |
sudo apt-get install -y neovim cargo fmt --all -- --check
- name: Test - name: Install Neovim
run: | run: |
RUST_BACKTRACE=full cargo test sudo apt-get install -y neovim
- name: Build Release - name: Test
run: | run: |
cargo build --release RUST_BACKTRACE=full cargo test
- uses: actions/upload-artifact@v1 - name: Build Release
with: run: |
name: neovide-linux cargo build --release
path: ./target/release/neovide
- uses: actions/upload-artifact@v1
with:
name: neovide-linux
path: ./target/release/neovide

Loading…
Cancel
Save