Skip to content

Commit

Permalink
workflow FIXUP
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo Leegwater Simões committed Oct 17, 2024
1 parent 2e1df30 commit 8f8a58c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 13 deletions.
30 changes: 23 additions & 7 deletions .github/workflows/dusk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,44 @@ jobs:
target: x86_64-apple-darwin
- os: macos-latest-xlarge
target: aarch64-apple-darwin

runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 16

- name: Setup dependencies
- name: Setup dependencies (x86_64-linux)
if: matrix.os == 'ubuntu-latest'
run: sudo apt update && sudo apt install -y ninja-build
run: |
sudo apt update && \
sudo apt install -y ninja-build && \
touch .env
- name: Setup dependencies (x86_64-apple)
if: startsWith(matrix.target, 'x86_64-apple')
run: |
brew install ninja llvm lld &&
echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> .env &&
echo 'export LDFLAGS="-L/usr/local/opt/llvm/lib"' >> .env &&
echo 'export CPPFLAGS="-I/usr/local/opt/llvm/include"' >> .env
- name: Setup dependencies
if: startsWith(matrix.os, 'macos')
- name: Setup dependencies (aarch64-apple)
if: startsWith(matrix.target, 'aarch64-apple')
run: |
brew install ninja gettext &&
brew link --force gettext
brew install ninja llvm lld &&
echo 'export PATH="/opt/homebrew/opt/llvm/bin:$PATH"' >> .env &&
echo 'export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"' >> .env &&
echo 'export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"' >> .env
- name: Generate configuration
run: |
HOST=${{ matrix.target }} envsubst < config.template.toml > config.toml &&
cat config.toml
- name: Run build
run: ./x.py dist
run: source .env && ./x.py dist

- name: Set artifact name
id: artifact-name
Expand Down
17 changes: 11 additions & 6 deletions config.template.toml
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
change-id = 131075

[llvm]
download-ci-llvm = false
clang = true

[build]
host = [ "${HOST}" ]
build-stage = 2
test-stage = 2
doc-stage = 2

target = [
"${HOST}",
"wasm32-unknown-unknown",
"wasm64-unknown-unknown"
]
docs = false

extended = true

[llvm]
download-ci-llvm = false

[rust]
channel = "nightly"
description = "Dusk Network's Smart Contract Compiler"

download-rustc = false
lld = true

llvm-bitcode-linker = true

[dist]
compression-formats = ["gz"]
compression-profile = "best"

0 comments on commit 8f8a58c

Please sign in to comment.