Skip to content

Commit

Permalink
Build from parent directory in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
JanWichelmann committed Aug 23, 2021
1 parent 7a8df72 commit ad2f1ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build-microwalk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Build Microwalk
on:
push:
paths:
- 'Microwalk/*'
- 'Microwalk*'
pull_request:
paths:
- 'Microwalk/*'
- 'Microwalk*'
workflow_dispatch:

jobs:
Expand All @@ -20,6 +20,5 @@ jobs:
dotnet-version: 5.0.x
- name: Build
run: |
cd Microwalk
dotnet build Microwalk/Microwalk.csproj --configuration Release
dotnet build Microwalk.Plugins.PinTracer/Microwalk.Plugins.PinTracer.csproj --configuration Release
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jobs:
dotnet-version: 5.0.x
- name: Build & Pack
run: |
cd Microwalk
dotnet publish Microwalk/Microwalk.csproj --configuration Release --output publish --no-self-contained
dotnet publish Microwalk.Plugins.PinTracer/Microwalk.Plugins.PinTracer.csproj --configuration Release --output publish --no-self-contained
cd publish
Expand All @@ -41,7 +40,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Microwalk/publish/Microwalk.zip
asset_path: ./publish/Microwalk.zip
asset_name: Microwalk.zip
asset_content_type: application/zip

Expand Down

0 comments on commit ad2f1ae

Please sign in to comment.