Skip to content

submodule: bump Atmosphere-libs from c3dc418 to bb76786 #27

submodule: bump Atmosphere-libs from c3dc418 to bb76786

submodule: bump Atmosphere-libs from c3dc418 to bb76786 #27

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
container:
image: devkitpro/devkita64:latest
defaults:
run:
shell: bash
steps:
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup ccache
uses: hendrikmuhs/[email protected]
- name: Build
id: build
run: make -j8 PREFIX="ccache aarch64-none-elf-"
continue-on-error: true
- name: Install libnx master & Retry build
id: retry
if: ${{ steps.build.outcome == 'failure' }}
run: |
pushd /tmp
git clone https://github.com/switchbrew/libnx
cd libnx
make -j8 PREFIX="ccache aarch64-none-elf-"
make install
popd
make -j8 PREFIX="ccache aarch64-none-elf-"
- name: Pack
run: |
cd ./out/sd
sudo zip -r ./ldn_mitm_${{ env.RELEASE_VERSION }}.zip atmosphere switch
- name: Create Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ env.RELEASE_VERSION }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./out/sd/ldn_mitm_${{ env.RELEASE_VERSION }}.zip
asset_name: ldn_mitm_${{ env.RELEASE_VERSION }}.zip
asset_content_type: application/zip