Skip to content

Commit 5075067

Browse files
committed
Initial Bounty Complete
0 parents  commit 5075067

20 files changed

Lines changed: 2039 additions & 0 deletions

.github/workflows/main.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
2+
name: Build
3+
4+
on: [push, pull_request]
5+
6+
jobs:
7+
build:
8+
name: build-${{ matrix.os }}
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
matrix:
12+
os: [windows-latest, macos-latest, ubuntu-latest]
13+
fail-fast: false
14+
steps:
15+
- name: Expose GitHub Runtime
16+
uses: crazy-max/ghaction-github-runtime@v3
17+
18+
- name: Install Mac Dependencies
19+
if: runner.os == 'macOS'
20+
run: brew install nasm
21+
22+
- name: Install Linux Dependencies
23+
if: runner.os == 'Linux'
24+
run: sudo apt-get install nasm
25+
26+
- name: Clone repository
27+
uses: actions/checkout@v4
28+
with:
29+
submodules: recursive
30+
31+
- name: Run Cake
32+
run: dotnet run --project ./build/Build.csproj --universalBinary=true
33+
env:
34+
ACTIONS_RUNTIME_TOKEN: ${{ env.ACTIONS_RUNTIME_TOKEN }}
35+
ACTIONS_RUNTIME_URL: "${{ env.ACTIONS_RUNTIME_URL }}"
36+
37+
deploy:
38+
name: deploy
39+
if: ${{ github.event_name == 'push' }}
40+
runs-on: ubuntu-latest
41+
permissions:
42+
packages: write
43+
contents: write
44+
needs: [ build ]
45+
steps:
46+
- name: Expose GitHub Runtime
47+
uses: crazy-max/ghaction-github-runtime@v3
48+
49+
- name: Clone repository
50+
uses: actions/checkout@v4
51+
with:
52+
submodules: recursive
53+
54+
- name: Run CAKE
55+
run: dotnet run --project ./build/Build.csproj -- --target=Package --universalBinary=true --toolname=FFMpeg --executablename=ffmpeg --commandname=mgcb-ffmpeg --licensepath=ffmpeg/LICENSE
56+
env:
57+
ACTIONS_RUNTIME_TOKEN: ${{ env.ACTIONS_RUNTIME_TOKEN }}
58+
ACTIONS_RUNTIME_URL: "${{ env.ACTIONS_RUNTIME_URL }}"
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
61+
- name: Make a release
62+
if: github.ref_type == 'tag'
63+
uses: ncipollo/release-action@v1
64+
with:
65+
name: 'MonoGame.Library.FreeType ${{ github.ref_name }}'
66+
tag: ${{ github.ref_name }}
67+
allowUpdates: true
68+
removeArtifacts: true
69+
artifacts: "bin/Release/*.nupkg"
70+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)