Skip to content

Commit

Permalink
add build and release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Martins <[email protected]>
  • Loading branch information
josecm committed Jul 23, 2024
1 parent afbaa97 commit e76e2ea
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
on:
workflow_dispatch:

name: Create Bao Project's RISC-V toolchain release

env:
TOOLCHAIN_TAR: riscv-unknown-elf.tar.gz

jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
container: baoproject/bao:latest
steps:
- name: Install dependencies
run: |
apt-get install texinfo -y
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
- name: Build project
run: |
make TOOLCHAIN_TAR=$TOOLCHAIN_TAR NUM_BUILD_THREADS=1
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./$TOOLCHAIN_TAR
asset_name: $TOOLCHAIN_TAR

0 comments on commit e76e2ea

Please sign in to comment.