Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Earu/GTerm
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan committed Oct 6, 2024
2 parents 322db97 + 8a8791c commit 8e4fe19
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Build Executables

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
# Handle Linux x64
- os: ubuntu-latest
runtime: linux-x64
arch: x64
# Handle Windows x64
- os: windows-latest
runtime: win-x64
arch: x64
# Handle Windows x86
- os: windows-latest
runtime: win-x86
arch: x86
# Handle macOS x64
- os: macos-latest
runtime: osx-x64
arch: x64

steps:
- name: Checkout source cod
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x' # Specify the required .NET SDK version

- name: Install dependencies
run: dotnet restore

- name: Publish executable
run: dotnet publish -c Release -r ${{ matrix.runtime }} --self-contained -p:PublishSingleFile=true -o ./publish/${{ matrix.os }}/${{ matrix.arch }}

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ matrix.arch }}
path: ./publish/${{ matrix.os }}/${{ matrix.arch }}

0 comments on commit 8e4fe19

Please sign in to comment.