name: Build
on:
push:
branches:
- master
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
- name: Install Dependencies
run: |
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse"
sudo apt-get update -y -qq
sudo apt-get install libsdl2-dev
sudo apt-get install libsdl2-image-dev
- name: Build
run: cargo build --release --manifest-path platform/rustboyadvance-sdl2/Cargo.toml
- name: Collect artifacts
mkdir artifacts
mkdir artifacts/assets
cp README.md artifacts
cp LICENSE artifacts
cp ./assets/icon_cropped_small.png artifacts/assets
cp ./target/release/rustboyadvance-sdl2 artifacts
- name : Upload artifacts
uses: actions/upload-artifact@v2
with:
name: rustboyadvance-sdl2-x86_64-unknown-linux-gnu
path: artifacts
build-windows-64:
runs-on: windows-2019
- run: rustup target add x86_64-pc-windows-msvc
run: cargo build --target x86_64-pc-windows-msvc --release --manifest-path .\platform\rustboyadvance-sdl2\Cargo.toml
mkdir artifacts\assets
copy README.md artifacts
copy LICENSE artifacts
copy .\assets\icon_cropped_small.png artifacts\assets
copy .\target\release\rustboyadvance-sdl2.exe artifacts
copy .\platform\rustboyadvance-sdl2\msvc\64\*.dll artifacts
copy .\platform\rustboyadvance-sdl2\msvc\64\LICENSE.* artifacts
name: rustboyadvance-sdl2-x86_64-pc-windows-msvc