fixup! Try #78
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | ||
on: | ||
push: | ||
branches: '*' | ||
tags: v* | ||
pull_request: | ||
branches: | ||
- master | ||
schedule: | ||
- cron: 0 0 * * * | ||
env: | ||
MACOSX_DEPLOYMENT_TARGET: 10.9 | ||
defaults: | ||
run: | ||
shell: bash | ||
jobs: | ||
test: | ||
name: Test (${{ matrix.data.os.target_triple }}) | ||
runs-on: ${{ matrix.data.os.host }} | ||
continue-on-error: ${{ matrix.nightly == 'nightly' }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
arch: [x86_64] | ||
data: | ||
# - os: | ||
# host: macOS-latest | ||
# target_triple: x86_64-apple-macos10.9 | ||
# | ||
# - os: | ||
# host: windows-latest | ||
# target_triple: x86_64-pc-windows-msvc | ||
- os: | ||
target: freebsd | ||
version: '13.1' | ||
target_triple: x86_64-unknown-freebsd${{ matrix.data.os.version }} | ||
Check failure on line 41 in .github/workflows/ci.yml GitHub Actions / CIInvalid workflow file
|
||
host: macOS-latest | ||
cross_platform_actions: true | ||
compiler: | ||
# - dmd-latest | ||
- ldc-latest | ||
llvm: | ||
- '15.0.7' | ||
# - '10.0.0' | ||
# - '9.0.0' | ||
# - '8.0.0' # used by Buildkite | ||
# - '6.0.0' # Used by Sociomantic | ||
# include: | ||
# - os: windows-latest | ||
# compiler: dmd-latest | ||
# arch: x86 | ||
# llvm: '10.0.0' | ||
# | ||
# - os: windows-latest | ||
# compiler: ldc-latest | ||
# arch: x86 | ||
# llvm: '10.0.0' | ||
# | ||
# - os: ubuntu-latest | ||
# compiler: dmd-beta | ||
# arch: x86_64 | ||
# llvm: '10.0.0' | ||
# | ||
# - os: ubuntu-latest | ||
# compiler: ldc-beta | ||
# arch: x86_64 | ||
# llvm: '10.0.0' | ||
# | ||
# - os: ubuntu-latest | ||
# compiler: dmd-master | ||
# arch: x86_64 | ||
# nightly: nightly | ||
# llvm: '10.0.0' | ||
# | ||
# - os: ubuntu-latest | ||
# compiler: ldc-master | ||
# arch: x86_64 | ||
# nightly: nightly | ||
# llvm: '10.0.0' | ||
steps: | ||
- name: Clone Repository | ||
uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
- name: Install Compiler | ||
if: matrix.data.cross_platform_actions == false | ||
uses: dlang-community/setup-dlang@v1 | ||
with: | ||
compiler: ${{ matrix.compiler }} | ||
- name: Download LLVM | ||
if: runner.os != 'Windows' | ||
run: | | ||
curl -f -L -o llvm.tar.xz --retry 3 'https://github.com/jacob-carlborg/clang-builder/releases/download/v${{ matrix.llvm }}%2B0.0.2-rc2/llvm-${{ matrix.llvm }}-${{ matrix.data.os.target_triple }}.tar.xz' | ||
tar xf llvm.tar.xz | ||
- name: Download LLVM | ||
if: runner.os == 'Windows' | ||
run: | | ||
curl -f -L -o llvm.7z --retry 3 'https://github.com/jacob-carlborg/clang-builder/releases/download/v${{ matrix.llvm }}%2B0.0.2-rc2/llvm-${{ matrix.llvm }}-${{ matrix.data.os.target_triple }}.7z' | ||
7z x llvm.7z | ||
# - name: Setup tmate session | ||
# uses: mxschmitt/action-tmate@v3 | ||
# with: | ||
# limit-access-to-actor: true | ||
- name: Configure LLVM | ||
if: matrix.data.cross_platform_actions == false | ||
run: ./configure --llvm-path llvm-${{ matrix.llvm }} --statically-link-clang | ||
- name: Test | ||
if: matrix.data.cross_platform_actions == false | ||
run: dub test --verror | ||
- name: Test | ||
if: matrix.data.cross_platform_actions | ||
uses: cross-platform-actions/action@v0.15.0 | ||
with: | ||
shell: bash | ||
operating_system: ${{ matrix.data.os.target }} | ||
version: ${{ matrix.data.os.version }} | ||
run: | | ||
sudo pkg install -y llvm git | ||
d_version="$(echo ${{ matrix.compiler }} | sed 's/-latest//')" | ||
source $(curl --retry 3 -fsS https://dlang.org/install.sh | bash -s "$d_version" -a) | ||
./configure --llvm-path llvm-${{ matrix.llvm }} --statically-link-clang | ||
dub test --verror |