add github action #4
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: Build MBC3 Test ROM | |
on: | |
push: | |
branches: master | |
pull_request: | |
branches: master | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Setup ASMotor | |
run: | | |
mkdir motor-bin | |
cd motor-bin | |
wget -O asmotor.zip https://github.com/ZoomTen/asmotor/releases/download/v1.3.0.rc.test1/asmotor-4e27ee3-linux-x86_64.zip | |
unzip asmotor.zip | |
chmod +x * | |
- name: Configure build | |
run: | | |
cmake -B ${PWD}/build | |
- name: Build | |
run: | | |
ls $PWD/motor-bin | |
PATH=$PWD/motor-bin:$PATH cmake --build ${PWD}/build | |
# - name: Upload artifact | |
# if: ${{ github.ref_name == 'master' }} | |
# uses: actions/[email protected] | |
# with: | |
# name: ${{ steps.package-identify.outputs.id }} | |
# path: target/motor/bin/ |