mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-08-07 07:59:27 +02:00
refactor: use "Reusing workflows"
This commit is contained in:
parent
7f26367a59
commit
bedf9cdd19
23
.github/workflows/build-jobs.yaml
vendored
Normal file
23
.github/workflows/build-jobs.yaml
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
name: Build jobs
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: build
|
||||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/${{ github.repository_owner }}/devkita64-atmosphere:latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Build Atmosphere
|
||||
run: |
|
||||
source /opt/venv/bin/activate
|
||||
git config --global --add safe.directory "*"
|
||||
make
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: atmosphere-artifacts
|
||||
path: ./out/nintendo_nx_arm64_armv8a/release/*
|
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
@ -12,20 +12,5 @@ defaults:
|
||||
shell: bash
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: build
|
||||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/${{ github.repository_owner }}/devkita64-atmosphere:latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Build Atmosphere
|
||||
run: |
|
||||
source /opt/venv/bin/activate
|
||||
git config --global --add safe.directory "*"
|
||||
make
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: atmosphere-artifacts
|
||||
path: ./out/nintendo_nx_arm64_armv8a/release/*
|
||||
build-workflow:
|
||||
uses: ./.github/workflows/build-jobs.yaml
|
||||
|
24
.github/workflows/prerelease.yml
vendored
24
.github/workflows/prerelease.yml
vendored
@ -17,28 +17,8 @@ defaults:
|
||||
shell: bash
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: build
|
||||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/${{ github.repository_owner }}/devkita64-atmosphere:latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Build Atmosphere
|
||||
run: |
|
||||
source /opt/venv/bin/activate
|
||||
git config --global --add safe.directory "*"
|
||||
make
|
||||
- name: Remove debug
|
||||
run: rm ./out/nintendo_nx_arm64_armv8a/release/atmosphere-*-debug.zip
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: atmosphere-artifacts
|
||||
path: ./out/nintendo_nx_arm64_armv8a/release/*
|
||||
|
||||
build-workflow:
|
||||
uses: ./.github/workflows/build-jobs.yaml
|
||||
create-prerelease:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
|
22
.github/workflows/release.yml
vendored
22
.github/workflows/release.yml
vendored
@ -17,26 +17,8 @@ defaults:
|
||||
shell: bash
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: build
|
||||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/${{ github.repository_owner }}/devkita64-atmosphere:latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Build Atmosphere
|
||||
run: |
|
||||
source /opt/venv/bin/activate
|
||||
git config --global --add safe.directory "*"
|
||||
make
|
||||
- name: Remove debug
|
||||
run: rm ./out/nintendo_nx_arm64_armv8a/release/atmosphere-*-debug.zip
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: atmosphere-artifacts
|
||||
path: ./out/nintendo_nx_arm64_armv8a/release/*
|
||||
|
||||
build-workflow:
|
||||
uses: ./.github/workflows/build-jobs.yaml
|
||||
create-release:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
|
Loading…
Reference in New Issue
Block a user