remove strip for win build #16
Workflow file for this run
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: Check code can compile | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
check-ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cache Rust dependencies | |
uses: actions/cache@v3 | |
with: | |
path: target | |
key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
${{ runner.OS }}-build- | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Install SDL2 | |
run: sudo apt install -y libsdl2-dev | |
- name: Check that code can compile | |
run: cargo check | |
check-macos: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cache Rust dependencies | |
uses: actions/cache@v3 | |
with: | |
path: target | |
key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
${{ runner.OS }}-build- | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Install SDL2 | |
run: brew install SDL2 | |
- name: Check that code can compile | |
run: cargo check | |
check-windows: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cache Rust dependencies | |
uses: actions/cache@v3 | |
with: | |
path: target | |
key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
${{ runner.OS }}-build- | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Use SDL2 from repo/include/win | |
run: | | |
cp include/win/SDL2.dll . | |
cp include/win/SDL2.lib . | |
- name: Check that code can compile | |
run: cargo check |