Skip to content

Commit 8f8a58c

Browse files
author
Eduardo Leegwater Simões
committed
workflow FIXUP
1 parent 2e1df30 commit 8f8a58c

File tree

2 files changed

+34
-13
lines changed

2 files changed

+34
-13
lines changed

.github/workflows/dusk.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,44 @@ jobs:
2626
target: x86_64-apple-darwin
2727
- os: macos-latest-xlarge
2828
target: aarch64-apple-darwin
29+
2930
runs-on: ${{ matrix.os }}
3031
steps:
3132
- name: Check out repository
3233
uses: actions/checkout@v4
3334
with:
3435
fetch-depth: 16
3536

36-
- name: Setup dependencies
37+
- name: Setup dependencies (x86_64-linux)
3738
if: matrix.os == 'ubuntu-latest'
38-
run: sudo apt update && sudo apt install -y ninja-build
39+
run: |
40+
sudo apt update && \
41+
sudo apt install -y ninja-build && \
42+
touch .env
43+
44+
- name: Setup dependencies (x86_64-apple)
45+
if: startsWith(matrix.target, 'x86_64-apple')
46+
run: |
47+
brew install ninja llvm lld &&
48+
echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> .env &&
49+
echo 'export LDFLAGS="-L/usr/local/opt/llvm/lib"' >> .env &&
50+
echo 'export CPPFLAGS="-I/usr/local/opt/llvm/include"' >> .env
3951
40-
- name: Setup dependencies
41-
if: startsWith(matrix.os, 'macos')
52+
- name: Setup dependencies (aarch64-apple)
53+
if: startsWith(matrix.target, 'aarch64-apple')
4254
run: |
43-
brew install ninja gettext &&
44-
brew link --force gettext
55+
brew install ninja llvm lld &&
56+
echo 'export PATH="/opt/homebrew/opt/llvm/bin:$PATH"' >> .env &&
57+
echo 'export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"' >> .env &&
58+
echo 'export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"' >> .env
59+
4560
- name: Generate configuration
4661
run: |
4762
HOST=${{ matrix.target }} envsubst < config.template.toml > config.toml &&
4863
cat config.toml
64+
4965
- name: Run build
50-
run: ./x.py dist
66+
run: source .env && ./x.py dist
5167

5268
- name: Set artifact name
5369
id: artifact-name

config.template.toml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,30 @@
11
change-id = 131075
22

3-
[llvm]
4-
download-ci-llvm = false
5-
clang = true
6-
73
[build]
8-
host = [ "${HOST}" ]
4+
build-stage = 2
5+
test-stage = 2
6+
doc-stage = 2
7+
98
target = [
109
"${HOST}",
1110
"wasm32-unknown-unknown",
1211
"wasm64-unknown-unknown"
1312
]
14-
docs = false
13+
1514
extended = true
1615

16+
[llvm]
17+
download-ci-llvm = false
18+
1719
[rust]
1820
channel = "nightly"
1921
description = "Dusk Network's Smart Contract Compiler"
2022

23+
download-rustc = false
2124
lld = true
2225

26+
llvm-bitcode-linker = true
27+
2328
[dist]
2429
compression-formats = ["gz"]
2530
compression-profile = "best"

0 commit comments

Comments
 (0)