tlang/.github/workflows/d.yml

67 lines
1.3 KiB
YAML
Raw Normal View History

2023-02-26 17:49:20 +00:00
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: D
on:
push:
branches: [ "vardec_varass_dependency" ]
pull_request:
branches: [ "vardec_varass_dependency" ]
workflow_dispatch:
permissions:
contents: read
jobs:
2023-03-26 11:52:55 +01:00
build:
name: Build
2023-03-25 20:59:22 +00:00
strategy:
matrix:
2023-03-26 11:52:55 +01:00
os: [ubuntu-latest]
2023-03-25 21:01:02 +00:00
dc: [dmd-2.101.0]
2023-03-25 20:59:22 +00:00
exclude:
- { os: macOS-latest, dc: dmd-2.085.0 }
2023-02-26 17:49:20 +00:00
2023-03-25 20:59:22 +00:00
runs-on: ${{ matrix.os }}
2023-02-26 17:49:20 +00:00
steps:
2023-03-25 20:59:22 +00:00
- uses: actions/checkout@v2
2023-03-26 11:47:56 +01:00
2023-03-26 11:43:17 +01:00
2023-03-25 20:59:22 +00:00
- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.dc }}
2023-02-26 17:49:20 +00:00
2023-03-26 11:46:05 +01:00
- name: Build
run: dub build
2023-03-26 11:58:47 +01:00
2023-03-26 11:57:38 +01:00
2023-03-26 11:47:56 +01:00
- uses: actions/upload-artifact@v3
with:
name: tbin
path: tlang
2023-03-26 11:52:55 +01:00
test:
needs: build
2023-03-26 11:54:32 +01:00
name: Run compiler tests
2023-03-26 11:52:55 +01:00
runs-on: ubuntu-latest
steps:
- name: Download math result for job 1
uses: actions/download-artifact@v3
with:
name: tbin
2023-03-26 11:47:56 +01:00
2023-03-26 11:58:47 +01:00
- name: Chmod compiler
run: chmod +x tlang
2023-03-26 11:54:32 +01:00
- name: Basic test
2023-03-26 11:56:24 +01:00
run: ./tlang --help
2023-03-26 11:56:44 +01:00
- name: List files here
run: ls -la