Skip to content

Commit

Permalink
all builds in release
Browse files Browse the repository at this point in the history
  • Loading branch information
asg017 committed Jan 25, 2023
1 parent 731dd52 commit 6780e6d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jobs:
name: sqlite-ulid-ubuntu
path: dist/debug/ulid0.so
build-macos:
if: false
name: Build macos-latest
runs-on: macos-latest
steps:
Expand All @@ -54,7 +53,6 @@ jobs:
name: sqlite-ulid-macos
path: dist/release/ulid0.dylib
build-macos-arm:
if: false
name: Build macos-latest with arm
runs-on: macos-latest
steps:
Expand All @@ -80,7 +78,6 @@ jobs:
name: sqlite-ulid-macos-arm
path: dist/debug/ulid0.dylib
build-windows:
if: false
name: Build windows-latest
runs-on: windows-latest
steps:
Expand All @@ -105,8 +102,7 @@ jobs:
path: dist/release/ulid0.dll
upload:
name: upload
#needs: [build-macos, build-macos-arm, build-ubuntu, build-windows]
needs: [build-ubuntu]
needs: [build-macos, build-macos-arm, build-ubuntu, build-windows]
permissions:
contents: write
runs-on: ubuntu-latest
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,27 +44,30 @@ module.exports = async ({ github, context }) => {
tag: process.env.GITHUB_REF.replace("refs/tags/", ""),
});
console.log("release id: ", release.data.id);

const VERSION = process.env.GITHUB_REF_NAME;
const release_id = release.data.id;

const compiled_extensions = [
{
name: "ulid0.so",
path: "sqlite-ulid-ubuntu/ulid0.so",
asset_name: "sqlite-ulid-vTODO-ubuntu-x86_64.tar.gz",
asset_name: `sqlite-ulid-${VERSION}-ubuntu-x86_64.tar.gz`,
},
/*{
{
name: "ulid0.dylib",
path: "sqlite-ulid-macos/ulid0.dylib",
asset_name: `sqlite-ulid-${VERSION}-macos-x86_64.tar.gz`,
},
{
name: "ulid0.dylib",
path: "sqlite-ulid-macos-arm/ulid0.dylib",
asset_name: `sqlite-ulid-${VERSION}-macos-arm64.tar.gz`,
},
{
name: "ulid0.dll",
path: "sqlite-ulid-windows/ulid0.dll",
},*/
asset_name: `sqlite-ulid-${VERSION}-windows-x86_64.tar.gz`,
},
];
console.log(compiled_extensions);

Expand Down

0 comments on commit 6780e6d

Please sign in to comment.