button #307
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Code | |
env: | |
CARGO_TERM_COLOR: always | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Update | |
run: sudo apt update | |
- name: Update Rust | |
run: rustup update | |
- name: Install Dependencies | |
run: sudo apt-get install libasound2-dev libudev-dev pkg-config xorg-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev | |
- name: Install fyrox | |
run: git clone https://github.com/FyroxEngine/Fyrox | |
- name: Build fyrox | |
run: cd Fyrox && cargo build && cd ../. | |
- name: Setup mdBook | |
uses: peaceiris/actions-mdbook@v1 | |
with: | |
mdbook-version: "latest" | |
- name: Test Code | |
run: mdbook test -L ./Fyrox/target/debug/deps |