Skip to content

Commit

Permalink
update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
notmarek committed Jul 14, 2023
1 parent 1bfb93a commit 7ca0ea2
Showing 1 changed file with 2 additions and 31 deletions.
33 changes: 2 additions & 31 deletions .github/workflows/release.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release
jobs:
buildarm:
name: Build Arm64
runs-on: buildjet-4vcpu-ubuntu-2204-arm
runs-on: buildjet-8vcpu-ubuntu-2204-arm
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand All @@ -25,48 +25,19 @@ jobs:
name: io-arm64
path: Io-arm64.tar.gz

buildamd64:
name: Build amd64
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Build release
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Archive artifacts
run: mkdir out && mv target/release/io out && mv static out/static && tar czvf Io-amd64.tar.gz out/*
- uses: actions/upload-artifact@master
with:
name: io-amd64
path: Io-amd64.tar.gz

publish:
name: Publish release
runs-on: ubuntu-latest
needs: [buildarm, buildamd64]
needs: [buildarm]
steps:
- name: Create Release
uses: actions/download-artifact@master
with:
name: io-arm64
path: Io-arm64.tar.gz
- uses: actions/download-artifact@master
with:
name: io-amd64
path: Io-amd64.tar.gz
- uses: softprops/action-gh-release@v1
with:
tag_name: release
files: |
Io-arm64.tar.gz
Io-amd64.tar.gz
prerelease: false

0 comments on commit 7ca0ea2

Please sign in to comment.