Skip to content

Commit

Permalink
[ci-nerves] updated ci
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-xu committed Jan 23, 2024
1 parent 52503e5 commit 62ee1e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/nerves-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ jobs:
cd nerves_livebook
git checkout "${NERVES_LIVEBOOK_VER}"
LINE="$(grep -n 'toolshed' mix.exs | awk -F: '{print $1+1}')"
head -n "${LINE}" mix.exs > mix.exs.tmp
LINE="$(grep -n 'tflite_elixir' mix.exs | awk -F: '{print $1+1}')"
head -n "$(($LINE-2))" mix.exs > mix.exs.tmp
echo ' {:tflite_elixir, "~> 0.3", path: "../tflite_elixir"},' >> mix.exs.tmp
tail -n "+${LINE}" mix.exs >> mix.exs.tmp
mv mix.exs.tmp mix.exs
Expand Down Expand Up @@ -190,8 +190,8 @@ jobs:
cd nerves_livebook
git checkout "${NERVES_LIVEBOOK_VER}"
LINE="$(grep -n 'toolshed' mix.exs | awk -F: '{print $1+1}')"
head -n "${LINE}" mix.exs > mix.exs.tmp
LINE="$(grep -n 'tflite_elixir' mix.exs | awk -F: '{print $1+1}')"
head -n "$(($LINE-2))" mix.exs > mix.exs.tmp
echo ' {:tflite_elixir, "~> 0.3", path: "../tflite_elixir"},' >> mix.exs.tmp
tail -n "+${LINE}" mix.exs >> mix.exs.tmp
mv mix.exs.tmp mix.exs
Expand Down

0 comments on commit 62ee1e7

Please sign in to comment.