Skip to content

Commit

Permalink
ci: Update path
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioGasquez committed Nov 9, 2023
1 parent dd56f4f commit ce68cd3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/wokwi_projects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,28 @@ jobs:
project:
- name: "hardware-check"
id: "360342886675214337"
path: "intro/hardware-check"
- name: http-client
id: "333372159510446675"
path: "intro/http-client"
arg: --example http_client
- name: button-interrupt
id: "333374799393849940"
path: "advanced/button-interrupt"
arg: --example solution

steps:
- name: Checkout the repository
uses: actions/checkout@v4

- name: Download project code
run: |
wget -q -O ${{ matrix.project.name }}.zip https://wokwi.com/api/projects/${{ matrix.project.id }}/zip
unzip ${{ matrix.project.name }}.zip -d ${{ matrix.project.name }}
unzip ${{ matrix.project.name }}.zip -d ${{ matrix.project.name }}_wokwi
mkdir -p ${{ matrix.project.name }}/src
cp ${{ matrix.project.name }}/*.rs ${{ matrix.project.name }}/src/
mkdir -p wokwi
mv ${{ matrix.project.name }} wokwi/${{ matrix.project.name }}
- name: Create wokwi.toml
run: echo -e "[wokwi]\nversion = 1\nfirmware = '${{ matrix.project.name }}'\nelf = '${{ matrix.project.name }}'" > ${{ matrix.project.name }}/wokwi.toml
Expand All @@ -54,7 +62,7 @@ jobs:
options: -u esp -v ${{ github.workspace }}:/home/esp/workspace
run: |
cd /home/esp/workspace/${{ matrix.project.name }}
/home/esp/.cargo/bin/cargo build --release --out-dir /home/esp/workspace/${{ matrix.project.name }} -Z unstable-options
/home/esp/.cargo/bin/cargo build --release ${{ matrix.project.arg }} --out-dir /home/esp/workspace/${{ matrix.project.name }} -Z unstable-options
- name: Wokwi CI check
uses: wokwi/wokwi-ci-action@v1
Expand Down

0 comments on commit ce68cd3

Please sign in to comment.