Skip to content

Commit

Permalink
Update gearboy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius authored Feb 25, 2024
1 parent 47897bd commit 2534288
Showing 1 changed file with 27 additions and 13 deletions.
40 changes: 27 additions & 13 deletions .github/workflows/gearboy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Update OS
run: sudo apt-get update -qq
- name: Install dependencies
run: sudo apt-get install -y libsdl2-dev libglew-dev libgtk-3-
run: sudo apt-get install -y libsdl2-dev libglew-dev libgtk-3-dev
- name: Get build number
run: |
echo "BUILD_NUMBER=$(git describe --abbrev=7 --dirty --always --tags)" >> $GITHUB_ENV
Expand All @@ -50,7 +50,7 @@ jobs:
name: ${{ env.NAME_UPPER }}-${{ env.BUILD_NUMBER }}-${{ matrix.os }}
path: artifact/*
libretro:
name: Libretro (Ubuntu)
name: Libretro (ubuntu)
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -76,6 +76,11 @@ jobs:
strategy:
matrix:
os: [macos-13, macos-14]
include:
- os: macos-13
architecture: intel
- os: macos-14
architecture: arm
runs-on: ${{ matrix.os }}
permissions:
contents: read
Expand All @@ -102,7 +107,7 @@ jobs:
- name: Archive binary
uses: actions/upload-artifact@v4
with:
name: ${{ env.NAME_UPPER }}-${{ env.BUILD_NUMBER }}-${{ matrix.os }}
name: ${{ env.NAME_UPPER }}-${{ env.BUILD_NUMBER }}-macos-${{ matrix.architecture }}
path: artifact/*
windows:
name: Windows
Expand Down Expand Up @@ -183,43 +188,52 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get build number
run: |
echo "BUILD_NUMBER=$(git describe --abbrev=7 --dirty --always --tags)" >> $GITHUB_ENV
- name: Prepare release directory
run: |
mkdir -p release
- name: Download Windows artifact
uses: actions/download-artifact@v4
with:
name: Windows binary
name: ${{ env.NAME_UPPER }}-${{ env.BUILD_NUMBER }}-windows
path: release
- name: Download macOS Intel artifact
uses: actions/download-artifact@v4
with:
name: macos-13 App bundle
name: ${{ env.NAME_UPPER }}-${{ env.BUILD_NUMBER }}-macos-intel
path: release
- name: Download macOS ARM artifact
uses: actions/download-artifact@v4
with:
name: macos-14 App bundle
name: ${{ env.NAME_UPPER }}-${{ env.BUILD_NUMBER }}-macos-arm
path: release
- name: Download Ubuntu 22.04 artifact
uses: actions/download-artifact@v4
with:
name: Linux (ubuntu-22.04) binary
name: ${{ env.NAME_UPPER }}-${{ env.BUILD_NUMBER }}-ubuntu-22.04
path: release
- name: Download Ubuntu 20.04 artifact
uses: actions/download-artifact@v4
with:
name: Linux (ubuntu-20.04) binary
name: ${{ env.NAME_UPPER }}-${{ env.BUILD_NUMBER }}-ubuntu-20.04
path: release
- name: Download BSD artifact
uses: actions/download-artifact@v4
with:
name: ${{ env.NAME_UPPER }}-${{ env.BUILD_NUMBER }}-bsd
path: release
- name: Create release
run: |
cd release
gh release create ${{ github.ref }} \
'${{ github.ref_name }}-windows.zip' \
'${{ github.ref_name }}-macos-intel.zip' \
'${{ github.ref_name }}-macos-arm.zip' \
'${{ github.ref_name }}-ubuntu-22.04.zip' \
'${{ github.ref_name }}-ubuntu-20.04.zip' \
'${{ env.NAME_UPPER }}-${{ env.BUILD_NUMBER }}-windows.zip' \
'${{ env.NAME_UPPER }}-${{ env.BUILD_NUMBER }}-macos-13.zip' \
'${{ env.NAME_UPPER }}-${{ env.BUILD_NUMBER }}-macos-14.zip' \
'${{ env.NAME_UPPER }}-${{ env.BUILD_NUMBER }}-ubuntu-22.04.zip' \
'${{ env.NAME_UPPER }}-${{ env.BUILD_NUMBER }}-ubuntu-20.04.zip' \
'${{ env.NAME_UPPER }}-${{ env.BUILD_NUMBER }}-bsd.zip' \
--generate-notes \
--draft
env:
Expand Down

0 comments on commit 2534288

Please sign in to comment.