Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions .github/workflows/dusk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 16
fetch-depth: 0

- name: Setup dependencies
if: matrix.os == 'ubuntu-latest'
Expand All @@ -41,15 +41,33 @@ jobs:
if: startsWith(matrix.os, 'macos')
run: |
brew install ninja gettext &&
brew link --force gettext
brew link --force gettext &&
brew install llvm

- name: Change cc and ar to wasm-supported versions
if: startsWith(matrix.os, 'macos')
run: |
LLVM_PATH=$(brew --prefix llvm)
echo "
[target.wasm32-unknown-unknown]
cc = \"$LLVM_PATH/bin/clang\"
ar = \"$LLVM_PATH/bin/llvm-ar\"

[target.wasm64-unknown-unknown]
cc = \"$LLVM_PATH/bin/clang\"
ar = \"$LLVM_PATH/bin/llvm-ar\"
" >> config.template.toml

- name: Generate configuration
run: |
HOST=${{ matrix.target }} envsubst < config.template.toml > config.toml &&
cat config.toml

- name: Run build
run: ./x.py dist

run: |
git remote add upstream https://github.com/rust-lang/rust.git
./x.py dist

- name: Set artifact name
id: artifact-name
Expand Down
Loading