Skip to content

Commit

Permalink
Pass platform and arch option when changed to offline compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
delasy committed Feb 1, 2025
1 parent afdb6f9 commit 5a264b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
- run: |
VERSION="${{ github.event.release.tag_name || github.ref }}"
VERSION="${VERSION#refs/tags/}"
echo "VERSION=${VERSION:1}" >> $GITHUB_ENV
VERSION="${VERSION:1}"
echo "VERSION=$VERSION" >> $GITHUB_ENV
- run: echo $VERSION
- run: the install
- run: the compile src/main --compiler=compiler --platform=linux && mv a.out cli-core-linux && sleep 1
Expand Down
4 changes: 2 additions & 2 deletions src/compile
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ export fn customCompile (compiler: str, action: str, filePath: str, outputPath:
optionsArg += " " + quote + "--output=" + outputPath + quote
}

if !platform.empty {
if !platform.empty && platform != os_NAME.lower {
optionsArg += " " + quote + "--platform=" + platform + quote
}

if !arch.empty {
if !arch.empty && arch != os_ARCH {
optionsArg += " " + quote + "--arch=" + arch + quote
}

Expand Down

0 comments on commit 5a264b0

Please sign in to comment.