[TorchSim] Fix for public version #76
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Release LLVM for torchsim | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' # Matches version tags like v1.0.0 | |
| jobs: | |
| build: | |
| runs-on: self-hosted | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Pull Gem5 Prebuilt Dependency Image | |
| run: docker pull ghcr.io/gem5/ubuntu-22.04_all-dependencies:latest | |
| - name: Checkout llvm-project | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: PSAL-POSTECH/llvm-project | |
| ref: torchsim | |
| path: llvm-project | |
| - name: Build LLVM | |
| run: | | |
| docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace/llvm-project \ | |
| ghcr.io/gem5/ubuntu-22.04_all-dependencies:latest \ | |
| bash -c " | |
| mkdir -p build && cd build && | |
| cmake -DLLVM_ENABLE_PROJECTS=mlir -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/workspace/riscv-llvm -DLLVM_TARGETS_TO_BUILD=RISCV -G \"Unix Makefiles\" ../llvm && | |
| make -j && make install" | |
| - name: Archive Build Artifacts | |
| run: tar -czvf riscv-llvm-release.tar.gz riscv-llvm | |
| - name: Create Release and Upload Assets | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| tag_name: ${{ github.ref }} | |
| name: Release ${{ github.ref }} | |
| draft: false | |
| prerelease: false | |
| trigger: | |
| name: Trigger build base image | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Trigger building base iamge | |
| run: gh api /repos/PSAL-POSTECH/PyTorchSim/dispatches -f event_type='build_base' | |
| env: | |
| GH_TOKEN: ${{ secrets.GIT_ACCESS_TOKEN }} |