Skip to content

Commit

Permalink
Initial Bounty Complete
Browse files Browse the repository at this point in the history
  • Loading branch information
AristurtleDev committed Apr 22, 2024
0 parents commit f4e569b
Show file tree
Hide file tree
Showing 19 changed files with 1,629 additions and 0 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@

name: Build

on: [push, pull_request]

jobs:
build:
name: build-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
fail-fast: false
steps:
- name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v3

- name: Install Mac Dependencies
if: runner.os == 'macOS'
run: brew install nasm

- name: Install Linux Dependencies
if: runner.os == 'Linux'
run: sudo apt-get install nasm

- name: Clone repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Run Cake
run: dotnet run --project ./build/Build.csproj --universalBinary=true
env:
ACTIONS_RUNTIME_TOKEN: ${{ env.ACTIONS_RUNTIME_TOKEN }}
ACTIONS_RUNTIME_URL: "${{ env.ACTIONS_RUNTIME_URL }}"

deploy:
name: deploy
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
permissions:
packages: write
contents: write
needs: [ build ]
steps:
- name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v3

- name: Clone repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Run CAKE
run: dotnet run --project ./build/Build.csproj -- --target=Package --universalBinary=true --toolname=FFprobe --executablename=ffprobe --commandname=mgcb-ffprobe --licensepath=ffprobe/LICENSE
env:
ACTIONS_RUNTIME_TOKEN: ${{ env.ACTIONS_RUNTIME_TOKEN }}
ACTIONS_RUNTIME_URL: "${{ env.ACTIONS_RUNTIME_URL }}"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Make a release
if: github.ref_type == 'tag'
uses: ncipollo/release-action@v1
with:
name: 'MonoGame.Library.FreeType ${{ github.ref_name }}'
tag: ${{ github.ref_name }}
allowUpdates: true
removeArtifacts: true
artifacts: "bin/Release/*.nupkg"
token: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit f4e569b

Please sign in to comment.