Setup CD pipeline for rawrassembly #5
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: CD RawrrAssembly | |
on: | |
# TODO important remove before actually merging | |
pull_request: | |
branches: [ devel ] | |
workflow_dispatch: | |
env: | |
DOTNET_DOCKER: mcr.microsoft.com/dotnet/sdk:8.0 | |
jobs: | |
build: | |
name: Build Assembly | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Pull image | |
run: docker pull $DOTNET_DOCKER | |
- name: Build | |
run: cd inst/rawrrassembly && docker run --rm -v $PWD:/app -w /app $DOTNET_DOCKER /app/build.sh /app /app/out | |
- name: Publish results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: rawrr | |
path: inst/rawrrassembly/out | |
verify-linux: | |
name: Verify on Linux | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download results | |
uses: actions/download-artifact@v4 | |
with: | |
name: rawrr | |
- name: List result | |
run: tree | |
- name: Execute on test file | |
run: ./rawrr-linux-x64 ./inst/extdata/sample.raw index |