Skip to content

Commit

Permalink
feat(ci): try build on Win/Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
l4l committed Dec 3, 2022
1 parent 9d6ceec commit 441993e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
jobs:
build:

runs-on: ubuntu-latest
runs-on: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v2
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@ jobs:

strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04, ubuntu-22.04]
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: ubuntu-latest
artifact_name: tiny-media-server
asset_name: tiny-media-server-linux-amd64
- os: windows-latest
artifact_name: tiny-media-server.exe
asset_name: tiny-media-server-windows-amd64
- os: macos-latest
artifact_name: tiny-media-server
asset_name: tiny-media-server-macos-amd64

steps:
- uses: actions/checkout@v2
Expand All @@ -21,11 +31,11 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/tiny-media-server
asset_name: tiny-media-server-${{ matrix.os }}
file: target/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
- uses: katyo/publish-crates@v1
if: matrix.os == 'ubuntu-22.04'
if: matrix.os == 'latest'
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
no-verify: true

0 comments on commit 441993e

Please sign in to comment.