Skip to content

Commit a30fe60

Browse files
committed
Try cleanup GitHub CI/CD environment
1 parent 54ce178 commit a30fe60

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/remoteBuild.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ jobs:
8686
- name: Install LLVM and dependencies (Ubuntu)
8787
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-22.04' }}
8888
run: |
89+
sudo apt remove libz
90+
sudo apt remove zstd
91+
sudo apt remove llvm
8992
sudo apt-get update
9093
sudo apt-get install -y libcurl4-openssl-dev
9194
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
@@ -108,7 +111,6 @@ jobs:
108111
run: |
109112
cmake -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_PREFIX_PATH="/usr/lib/x86_64-linux-gnu" -DADEPT_LINK_LLVM_STATIC=On -B ${{github.workspace}}/build -G Ninja
110113
env:
111-
CC: /home/linuxbrew/.linuxbrew/opt/llvm/bin/clang
112114
LLVM_DIR: /home/linuxbrew/.linuxbrew/opt/llvm
113115
zstd_DIR: /home/linuxbrew/.linuxbrew/opt/zstd
114116
CFLAGS: -static-libstdc++
@@ -122,7 +124,12 @@ jobs:
122124
if: ${{ matrix.os != 'windows-latest' }}
123125
run: |
124126
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
125-
- name: Archive Build Result
127+
- name: - name: Test Build Artifact (Ubuntu)
128+
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-22.04' }}
129+
run: |
130+
echo -e "foreign printf(format *ubyte, ...) int\nfunc main {\nprintf('Hello, world!\\n')\n}" > h.adept
131+
${{github.workspace}}/build/adept h.adept
132+
./hArchive Build Result
126133
uses: a7ul/[email protected]
127134
with:
128135
command: c

0 commit comments

Comments
 (0)