diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..2915cd2 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,36 @@ +name: Build + +on: + push: + branches: + - master + +jobs: + build-windows-64: + + runs-on: windows-2019 + + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v2 + + - name: Build + run: cargo build --release --manifest-path .\platform\rustboyadvance-sdl2\Cargo.toml + + - name: Collect artifacts + run: | + mkdir artifacts + 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 : Uplaod artifacts + uses: actions/upload-artifact@v2 + with: + name: rustboyadvance-sdl2-X64_86 + path: artifacts + diff --git a/README.md b/README.md index 7f60570..29baa61 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # RustBoyAdvance-NG -![license](https://img.shields.io/github/license/michelhe/rustboyadvance-ng) [![Build Status](https://travis-ci.com/michelhe/rustboyadvance-ng.svg?branch=master)](https://travis-ci.com/michelhe/rustboyadvance-ng) +![license](https://img.shields.io/github/license/michelhe/rustboyadvance-ng) ![Build](https://github.com/michelhe/rustboyadvance-ng/workflows/Build/badge.svg?branch=master) Nintendo GameBoy Advance ™ emulator and debugger, written in rust. @@ -9,7 +9,7 @@ Nintendo GameBoy Advance ™ emulator and debugger, written in rust. -WebAssembly Demo: https://michelhe.github.io/rustboyadvance-ng/ +WebAssembly Demo: https://michelhe.github.io/rustboyadvance-ng/ ![Deploy](https://github.com/michelhe/rustboyadvance-ng/workflows/Deploy/badge.svg?branch=master) # Project Structure * `rustboyadvance-core/src` - Main library crate