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 244e7d0
Showing 1 changed file with 23 additions and 7 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 -L/usr/local/opt/llvm/lib/c++ -L/usr/local/opt/llvm/lib/unwind -lunwind"' >> .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 -L/opt/homebrew/opt/llvm/lib/c++ -L/opt/homebrew/opt/llvm/lib/unwind -lunwind"' >> .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

0 comments on commit 244e7d0

Please sign in to comment.