ci: dl artifact v4 + run bin #2
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: cross compile dotnet app | |
on: | |
push: | |
branches: | |
- "**" | |
pull_request: | |
branches: | |
- "**" | |
jobs: | |
build: | |
runs-on: macos-14 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 7.x | |
- name: build dotnet executables | |
run: make build | |
- name: size of executables | |
run: make size | |
- name: file info | |
run: make file | |
- uses: actions/upload-artifact@v4 | |
with: | |
path: bin/* | |
test: | |
defaults: | |
run: | |
shell: sh | |
needs: [build] | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["macos-14"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Download all workflow run artifacts | |
uses: actions/download-artifact@v4 | |
- name: list bin | |
run: ls bin/* | |
- name: run executable | |
run: bin/hello_dotnet-osx-arm64/Explore.Cli |