Fix github actions for macos (#135)
* Fix github actions for macos * Enable macos debugging session
This commit is contained in:
parent
81526df6a4
commit
98663f9416
|
|
@ -19,3 +19,7 @@ dfmt_space_after_keywords = true
|
||||||
dfmt_selective_import_space = true
|
dfmt_selective_import_space = true
|
||||||
dfmt_compact_labeled_statements = true
|
dfmt_compact_labeled_statements = true
|
||||||
dfmt_template_constraint_style = conditional_newline_indent
|
dfmt_template_constraint_style = conditional_newline_indent
|
||||||
|
|
||||||
|
[*.yml]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
@ -58,6 +58,11 @@ jobs:
|
||||||
dmd: gdc-12
|
dmd: gdc-12
|
||||||
host: macos-latest
|
host: macos-latest
|
||||||
|
|
||||||
|
# Restrict DMD to macOS latest
|
||||||
|
- compiler:
|
||||||
|
dmd: dmd
|
||||||
|
host: macos-latest
|
||||||
|
|
||||||
# Omit dub builds for GDC because dub rejects the old fronted revision
|
# Omit dub builds for GDC because dub rejects the old fronted revision
|
||||||
- compiler:
|
- compiler:
|
||||||
dmd: gdc-12
|
dmd: gdc-12
|
||||||
|
|
@ -66,12 +71,19 @@ jobs:
|
||||||
include:
|
include:
|
||||||
- { do_report: 1, build: { type: dub, version: 'current' }, host: 'ubuntu-22.04', compiler: { version: dmd-latest, dmd: dmd } }
|
- { do_report: 1, build: { type: dub, version: 'current' }, host: 'ubuntu-22.04', compiler: { version: dmd-latest, dmd: dmd } }
|
||||||
|
|
||||||
|
- compiler:
|
||||||
|
dmd: dmd
|
||||||
|
host: macos-13
|
||||||
|
build:
|
||||||
|
type: 'dub'
|
||||||
|
version: 'current'
|
||||||
|
|
||||||
runs-on: ${{ matrix.host }}
|
runs-on: ${{ matrix.host }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Clone repo + submodules
|
# Clone repo + submodules
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
@ -95,9 +107,9 @@ jobs:
|
||||||
sudo apt-get install gdc-12 -y
|
sudo apt-get install gdc-12 -y
|
||||||
gdc-12 --version
|
gdc-12 --version
|
||||||
|
|
||||||
# - name: Setup upterm session
|
- name: Setup upterm session
|
||||||
# if: ${{ matrix.build.type == 'make' && matrix.host == 'macos-latest'}}
|
if: ${{ matrix.build.type == 'dub' && matrix.host == 'macos-latest'}}
|
||||||
# uses: lhotari/action-upterm@v1
|
uses: lhotari/action-upterm@v1
|
||||||
|
|
||||||
# Compile D-Scanner and execute all tests without dub
|
# Compile D-Scanner and execute all tests without dub
|
||||||
- name: Build and test without dub
|
- name: Build and test without dub
|
||||||
|
|
@ -169,7 +181,7 @@ jobs:
|
||||||
|
|
||||||
# Parse phobos to check for failures / crashes / ...
|
# Parse phobos to check for failures / crashes / ...
|
||||||
- name: Checkout Phobos
|
- name: Checkout Phobos
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: dlang/phobos
|
repository: dlang/phobos
|
||||||
path: phobos
|
path: phobos
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue