Skip to content

Commit

Permalink
Add github action config
Browse files Browse the repository at this point in the history
  • Loading branch information
NoMore201 committed Jul 23, 2024
1 parent 671c74a commit d7c4e63
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build

on: push

jobs:
build:
name: Toolchain build
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Install dependencies
run: sudo ./install-deps

- name: Build
run: ./build-toolchain

- name: Extract commit SHA
shell: bash
run: |
echo "SHORT_SHA=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV"
echo $SHORT_SHA
- name: Package
run: |
cd ./INSTALL
zip -r9 ../tricore-gcc-11.3.1-${{ env.SHORT_SHA }}-linux.zip .
cd ../INSTALL-WIN
zip -r9X ../tricore-gcc-11.3.1-${{ env.SHORT_SHA }}-win32.zip .
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: *.zip

0 comments on commit d7c4e63

Please sign in to comment.