From b905e5b791bb92206347f27bc75f5856d32ecee2 Mon Sep 17 00:00:00 2001 From: MishMish Date: Thu, 30 Apr 2020 19:53:15 +0300 Subject: [PATCH] Add build workflow for windows. Also, add some badges :P Former-commit-id: 697095b9f1d5055205f4a4c5e1c880c4c6581faa Former-commit-id: 6a32c4caea7e7460058ecf46ac12ddedba70b1ff --- .github/workflows/build.yml | 36 ++++++++++++++++++++++++++++++++++++ README.md | 4 ++-- 2 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/build.yml 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