mirror of
https://github.com/Team-Resurgent/XboxMemCard.git
synced 2026-08-15 11:18:05 -07:00
Merge branch 'main' of https://github.com/Team-Resurgent/XboxMemCard
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Install Dependencies
|
||||
run: sudo apt install -y cmake gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib
|
||||
|
||||
- name: Get Pico SDK
|
||||
run: git clone --branch 2.1.0 --recurse-submodules https://github.com/raspberrypi/pico-sdk.git
|
||||
|
||||
- name: Create Build
|
||||
run: |
|
||||
rm -rf build
|
||||
mkdir -p build
|
||||
|
||||
- name: Build XboxMemCard
|
||||
uses: threeal/cmake-action@v2
|
||||
id: cmake
|
||||
with:
|
||||
source-dir: .
|
||||
options: |
|
||||
PICO_SDK_PATH=${{ github.workspace }}/pico-sdk
|
||||
|
||||
- name: List Files
|
||||
run: ls -lh build/**
|
||||
|
||||
- name: Upload UF2 Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: uf2-${{ matrix.board }}
|
||||
path: build/*.uf2
|
||||
|
||||
release:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Download All Artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
path: output
|
||||
|
||||
- name: Create Draft Release
|
||||
uses: softprops/action-gh-release@v2.2.2
|
||||
#if: github.ref == 'refs/heads/main'
|
||||
with:
|
||||
tag_name: latest
|
||||
draft: true
|
||||
files: output/**/*.uf2
|
||||
|
||||
- name: Create Tagged Release
|
||||
uses: softprops/action-gh-release@v2.2.2
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
files: output/**/*.uf2
|
||||
Reference in New Issue
Block a user