Skip to content

Commit

Permalink
CI testing
Browse files Browse the repository at this point in the history
  • Loading branch information
irixxxx committed Sep 17, 2023
1 parent b2e1a67 commit c4a5394
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci-miyoo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI (Miyoo)
on: [push, pull_request]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: build environment
run: |
whoami
docker pull miyoocfw/toolchain
- name: build
run: |
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
dock="docker run -i -v $PWD:/home/picodrive -w /home/picodrive miyoocfw/toolchain"
$dock sh -c "git config --global --add safe.directory /home/picodrive"
$dock sh -c "CROSS_COMPILE=arm-buildroot-linux-musleabi- ./configure --platform=miyoo"
$dock sh -c "CROSS_COMPILE=arm-buildroot-linux-musleabi- make"
mv PicoDrive.zip PicoDrive-miyoo-$ver.zip
- name: artifacts
uses: actions/upload-artifact@v3
with:
name: build result
path: PicoDrive-miyoo*.zip

0 comments on commit c4a5394

Please sign in to comment.