Skip to content

Commit a8ee71f

Browse files
committed
prep the release action
1 parent b2399e2 commit a8ee71f

File tree

2 files changed

+40
-3
lines changed

2 files changed

+40
-3
lines changed

.github/workflows/build.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
2+
name: build
3+
4+
on:
5+
push:
6+
tags:
7+
- 'v*'
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
submodules: recursive
16+
- run: |
17+
MYDIR="$PWD"
18+
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.7/llvm-15.0.7.src.tar.xz
19+
tar xJf llvm-15.0.7.src.tar.xz
20+
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.0-rc1/cmake-15.0.0rc1.src.tar.xz
21+
tar xJf cmake-15.0.0rc1.src.tar.xz
22+
cp -v cmake-15.0.0rc1.src/Modules/* llvm-15.0.7.src/cmake/modules/
23+
pushd llvm-15.0.7.src
24+
mkdir -p "$MYDIR/llvm-install"
25+
mkdir build; cd build
26+
cmake .. -DCMAKE_INSTALL_PREFIX="$MYDIR/llvm-install" -DCMAKE_BUILD_TYPE=Release -DLLVM_INCLUDE_BENCHMARKS=OFF -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON -DLLVM_TARGETS_TO_BUILD='X86' -DLLVM_ENABLE_PROJECTS=''
27+
cmake --build .
28+
cmake --build . --target install
29+
popd
30+
- uses: haskell-actions/setup@v2
31+
with:
32+
ghc-version: '9.4'
33+
- run: |
34+
export PATH="$PWD/llvm-install/bin/:$PATH"
35+
cabal build
36+
cp `cabal exec which remotesom` remotesom-${{ github.ref_name }}
37+
xz -9 < remotesom-${{ github.ref_name }} > remotesom-${{ github.ref_name }}.xz
38+
- uses: softprops/action-gh-release@v2
39+
with:
40+
files: remotesom-${{ github.ref_name }}.xz

cabal.project

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
11
packages: remotesom.cabal, accelerate/*.cabal, accelerate-llvm/accelerate-llvm/*.cabal, accelerate-llvm/accelerate-llvm-native/*.cabal, llvm-hs/*/*.cabal
2-
3-
package remotesom
4-
executable-static: True

0 commit comments

Comments
 (0)