mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-08-06 07:29:33 +02:00
Create dotnet-build.yml
This commit is contained in:
parent
8b8e4438e8
commit
a4a1c4b781
51
.github/workflows/dotnet-build.yml
vendored
Normal file
51
.github/workflows/dotnet-build.yml
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
name: Build & Release Atmosphère
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*' # Triggers on version tags like v1.9.2, v2.0.0, etc.
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repo (with submodules)
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y build-essential cmake ninja-build python3-pip \
|
||||
gcc-arm-none-eabi libarchive-tools
|
||||
|
||||
- name: Build Atmosphère
|
||||
run: make -j$(nproc)
|
||||
|
||||
- name: Create release zip
|
||||
run: |
|
||||
mkdir -p release_output
|
||||
cp -r output/* release_output/ || true
|
||||
zip -r atmosphere_build.zip release_output
|
||||
|
||||
- name: Create GitHub Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
name: ${{ github.ref_name }}
|
||||
tag_name: ${{ github.ref_name }}
|
||||
body: |
|
||||
✅ This is an automated release of Atmosphère based on tag `${{ github.ref_name }}`
|
||||
Built via GitHub Actions.
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Upload release asset
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
tag_name: ${{ github.ref_name }}
|
||||
files: atmosphere_build.zip
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in New Issue
Block a user