Perhaps fix sed
@@ -72,9 +72,15 @@ jobs:
shell: bash
run: |
version=nightly-$(date +"%y%m%d")
- sed -i "s/version = \".*\"/version = \"$version\"" compile-core/Cargo.toml
- sed -i "s/version = \".*\"/version = \"$version\"" compile-wasm/Cargo.toml
- sed -i "s/version = \".*\"/version = \"$version\"" compile-cli/Cargo.toml
+
+ sed "s/^version = \".*\"\$/version = \"$version\"/" compiler-core/Cargo.toml > /tmp/gleam-cargo.toml
+ mv /tmp/gleam-cargo.toml compiler-core/Cargo.toml
+
+ sed "s/^version = \".*\"\$/version = \"$version\"/" compiler-wasm/Cargo.toml > /tmp/gleam-cargo.toml
+ mv /tmp/gleam-cargo.toml compiler-wasm/Cargo.toml
+
+ sed "s/^version = \".*\"\$/version = \"$version\"/" compiler-cli/Cargo.toml > /tmp/gleam-cargo.toml
+ mv /tmp/gleam-cargo.toml compiler-cli/Cargo.toml
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
@@ -156,9 +162,15 @@ jobs:
shell: bash
run: |
version=nightly-$(date +"%y%m%d")
- sed -i "s/version = \".*\"/version = \"$version\"" compile-core/Cargo.toml
- sed -i "s/version = \".*\"/version = \"$version\"" compile-wasm/Cargo.toml
- sed -i "s/version = \".*\"/version = \"$version\"" compile-cli/Cargo.toml
+
+ sed "s/^version = \".*\"\$/version = \"$version\"/" compiler-core/Cargo.toml > /tmp/gleam-cargo.toml
+ mv /tmp/gleam-cargo.toml compiler-core/Cargo.toml
+
+ sed "s/^version = \".*\"\$/version = \"$version\"/" compiler-wasm/Cargo.toml > /tmp/gleam-cargo.toml
+ mv /tmp/gleam-cargo.toml compiler-wasm/Cargo.toml
+
+ sed "s/^version = \".*\"\$/version = \"$version\"/" compiler-cli/Cargo.toml > /tmp/gleam-cargo.toml
+ mv /tmp/gleam-cargo.toml compiler-cli/Cargo.toml
- name: Link to predefined musl toolchain
run: |
