Skip to content

Commit

Permalink
Create binary xbuild releases.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvc94ch committed Dec 9, 2022
1 parent f4bc37b commit 1dc24a5
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
on:
release:
types:
- created

defaults:
run:
shell: bash

name: release

jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: hecrj/setup-rust-action@v1
- run: cargo install --path xbuild --root .
- run: mv bin/x xbuild-linux-x64
- run: gh release upload $TAG xbuild-linux-x64 -R rust-mobile/xbuild
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.event.release.tag_name }}

macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: hecrj/setup-rust-action@v1
- run: cargo install --path xbuild --root .
- run: mv bin/x xbuild-macos-x64
- run: gh release upload $TAG xbuild-macos-x64 -R rust-mobile/xbuild
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.event.release.tag_name }}

windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: hecrj/setup-rust-action@v1
- run: cargo install --path xbuild --root .
- run: mv bin/x.exe xbuild-windows-x64.exe
- run: gh release upload $TAG xbuild-windows-x64.exe -R rust-mobile/xbuild
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.event.release.tag_name }}

0 comments on commit 1dc24a5

Please sign in to comment.