Skip to content

Commit

Permalink
[fix/ISSUE-47] Patch duktaped files to support building for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
azihassan committed Jan 4, 2024
1 parent 4b1b1c3 commit 0ff2bcb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
unit_test:
strategy:
matrix:
os: [ { name: ubuntu-20.04, extension: '' } , { name: windows-2019, extension: '.exe' }, { name: macos-latest, extension: '']
os: [ { name: ubuntu-20.04, extension: '' } , { name: windows-2019, extension: '.exe' }, { name: macos-latest, extension: '' } ]

runs-on: ${{ matrix.os.name }}

Expand All @@ -16,6 +16,13 @@ jobs:
- uses: mihails-strasuns/setup-dlang@v1
name: Install DMD

- name: Fix duktaped build on OSX
if: matrix.os.name == 'macos-latest'
run: |
dub upgrade
sed -i -e 's/version(Posix)/version(linux)/g' ~/.dub/packages/duktape/0.4.0/duktape/source/duk_config.d
sed -i -e 's/-linux/-posix/g' ~/.dub/packages/duktape/0.4.0/duktape/dub.json
- name: Build
run: dub build

Expand Down

0 comments on commit 0ff2bcb

Please sign in to comment.