Fix mtrl unwrap due to accidental commit #55
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: Main | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
reuse: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: REUSE Compliance Check | |
uses: fsfe/reuse-action@v3 | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
id: cache-deps | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }} | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install \ | |
libunshield-dev \ | |
- name: Install Cargo dependencies | |
if: steps.cache-deps.outputs.cache-hit != 'true' | |
run: | | |
cargo install --locked cargo-deny | |
cargo install --locked cargo-semver-checks | |
- name: Build | |
run: cargo build --features visual_data,game_install --verbose | |
- name: Run tests | |
run: cargo test --features visual_data,game_install --verbose | |
- name: Run clippy | |
run: cargo clippy --features visual_data,game_install | |
- name: Set up SSH key | |
run: | | |
mkdir -p ~/.ssh | |
echo "${{ secrets.DEPLOY_PRIVATE_KEY }}" > ~/.ssh/id_rsa | |
chmod 600 ~/.ssh/id_rsa | |
- name: Update Docs | |
if: github.ref == 'refs/heads/main' | |
run: | | |
cargo doc --release --no-deps | |
rsync -e "ssh -p 38901 -o StrictHostKeyChecking=no" --recursive target/doc/ [email protected]:/srv/http/physis-docs | |
- name: Run deny-check | |
run: | | |
cargo deny check | |
- name: Run semver-checks | |
run: | | |
cargo semver-checks check-release |