Update d.yml #132
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: D | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dlang-community/setup-dlang@v2 | |
with: | |
compiler: ldc-latest | |
- name: Test | |
run: rake test:coverage | |
- name: Build | |
run: rake build:release:strip | |
- name: Man Page with Ronn | |
run: | | |
sudo gem install ronn-ng | |
rake manpage | |
- name: Distro Packages | |
run: | | |
sudo gem install fpm | |
rake package | |
- name: Upload Build Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "trash-d" | |
path: | | |
build/trash | |
build/trash.man | |
- name: Upload Coverage Logs | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "coverage-logs" | |
path: "build/coverage/*.lst" | |
- name: Upload Packages | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "built-packages" | |
path: | | |
build/*.deb | |
build/*.rpm |