mirror of
https://github.com/ivabus/roulette
synced 2024-11-26 10:25:07 +03:00
Update create-binaries.yml
This commit is contained in:
parent
0cf241879f
commit
a70fda9dc8
1 changed files with 5 additions and 34 deletions
39
.github/workflows/create-binaries.yml
vendored
39
.github/workflows/create-binaries.yml
vendored
|
@ -4,7 +4,7 @@ on:
|
||||||
types: [created]
|
types: [created]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Setup .NET
|
- name: Setup .NET
|
||||||
|
@ -23,10 +23,10 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
dotnet publish --runtime osx-x64 -o prepublish/osx-x64/ --self-contained -p:PublishSingleFile=true
|
dotnet publish --runtime osx-x64 -o prepublish/osx-x64/ --self-contained -p:PublishSingleFile=true
|
||||||
mv prepublish/osx-x64/roulette publish/roulette-osx-x64
|
mv prepublish/osx-x64/roulette publish/roulette-osx-x64
|
||||||
# - name: Create binary for osx-arm64
|
- name: Create binary for osx-arm64
|
||||||
# run: |
|
run: |
|
||||||
# dotnet publish --runtime osx-arm64 -o prepublish/osx-arm64/ --self-contained -p:PublishSingleFile=true
|
dotnet publish --runtime osx-arm64 -o prepublish/osx-arm64/ --self-contained -p:PublishSingleFile=true
|
||||||
# mv prepublish/osx-arm64/roulette publish/roulette-osx-arm64
|
mv prepublish/osx-arm64/roulette publish/roulette-osx-arm64
|
||||||
- name: Create binary for linux-x64
|
- name: Create binary for linux-x64
|
||||||
run: |
|
run: |
|
||||||
dotnet publish --runtime linux-x64 -o prepublish/linux-x64/ --self-contained -p:PublishSingleFile=true
|
dotnet publish --runtime linux-x64 -o prepublish/linux-x64/ --self-contained -p:PublishSingleFile=true
|
||||||
|
@ -53,35 +53,6 @@ jobs:
|
||||||
mv prepublish/win-arm64/roulette.exe publish/roulette-win-arm64.exe
|
mv prepublish/win-arm64/roulette.exe publish/roulette-win-arm64.exe
|
||||||
|
|
||||||
|
|
||||||
- name: Upload To Github Release
|
|
||||||
uses: xresloader/upload-to-github-release@v1.3.2
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
file: publish/*
|
|
||||||
tags: ${{ github.ref }}
|
|
||||||
buildForAppleSilicon:
|
|
||||||
runs-on: macos-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Setup .NET
|
|
||||||
uses: actions/setup-dotnet@v1
|
|
||||||
with:
|
|
||||||
dotnet-version: 6.0.x
|
|
||||||
- name: Restore dependencies
|
|
||||||
run: dotnet restore
|
|
||||||
- name: Build
|
|
||||||
run: dotnet build --no-restore
|
|
||||||
- name: Test
|
|
||||||
run: dotnet test --no-build --verbosity normal
|
|
||||||
- name: Prepare
|
|
||||||
run: |
|
|
||||||
mkdir prepublish publish
|
|
||||||
- name: Create binary for osx-arm64
|
|
||||||
run: |
|
|
||||||
dotnet publish --runtime osx-arm64 -o prepublish/osx-arm64/ --self-contained -p:PublishSingleFile=true
|
|
||||||
mv prepublish/osx-arm64/roulette publish/roulette-osx-arm64
|
|
||||||
# codesign -s - publish/roulette-osx-arm64
|
|
||||||
- name: Upload To Github Release
|
- name: Upload To Github Release
|
||||||
uses: xresloader/upload-to-github-release@v1.3.2
|
uses: xresloader/upload-to-github-release@v1.3.2
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Reference in a new issue