Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
widberg committed Feb 5, 2023
1 parent 68285a5 commit c124360
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/widberg-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Widberg Release

on:
push:
tags:
- 'widberg-*'

jobs:
build:
name: Publish
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1

- uses: ilammy/[email protected]
- name: Build
run: |
cmake -S llvm -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_TARGETS_TO_BUILD="X86"
cmake --build build --config RelWithDebInfo --target clang
- name: Package
run: |
cd build/bin/
7z a ../../bin.zip clang-cl.exe
- 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 Archive to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_name: ${{ github.ref }}-windows-x86_64-${{ github.sha }}.zip
asset_path: bin.zip
asset_content_type: application/zip
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@ compiler-explorer configuration for this Clang driver as well as a
with the correct options. This is useful for quickly prototyping the
compiler.

## Build

Use `x64 Native Tools Command Prompt`

```sh
cmake -S llvm -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLLVM_ENABLE_PROJECTS="clang;lld" -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_TARGETS_TO_BUILD="X86"
cmake --build build --config RelWithDebInfo --target clang lld
```

# Affiliation with LLVM (Or Lack Thereof)

This project is not affiliated with the LLVM project in any way.
Expand Down

0 comments on commit c124360

Please sign in to comment.