Skip to content

Commit

Permalink
core: fix release script (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiroaisen authored Jul 22, 2024
2 parents fadc42b + bab47aa commit 7ae74a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ jobs:

- uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- uses: Swatinem/rust-cache@v2
with:
shared-key: build-release
Expand All @@ -61,8 +57,7 @@ jobs:
# ${{ runner.os }}-build-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml', './rs') }}
# ${{ runner.os }}-build-

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand Down
5 changes: 3 additions & 2 deletions scripts/src/release.mts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const frontdir = {
};

const binfile = {
src: `${basedir}/target/x86_64-unknown-linux-gnu/release/openstream`,
src: `${basedir}/target/release/openstream`,
target: `${tmpdir}/target/release/openstream`,
}

Expand All @@ -30,7 +30,8 @@ const revision = (await $`git rev-parse HEAD`).stdout.trim();
const branch = (await $`git branch --show-current`).stdout.trim();
const comment = (await $`git --no-pager log -1 --format=%s`).stdout.trim();

await $`cross build --release --bin openstream --color always --target x86_64-unknown-linux-gnu`;
// await $`cross build --release --bin openstream --color always --target x86_64-unknown-linux-gnu`;
await $`cargo build --release --bin openstream --color always`;

await within(async () => {
cd(frontdir.src);
Expand Down

0 comments on commit 7ae74a0

Please sign in to comment.