Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33ad13ca2b | ||
|
|
41e1ac2592 |
+29
-25
@@ -5,7 +5,7 @@ on:
|
|||||||
- 'v*'
|
- 'v*'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TF_VERSION: 0.0.10
|
TF_VERSION: 0.0.12
|
||||||
PACKAGE_AND_BREW: ${{ secrets.PACKAGE_AND_BREW }}
|
PACKAGE_AND_BREW: ${{ secrets.PACKAGE_AND_BREW }}
|
||||||
VERSION: ${{ gitea.ref_name }}
|
VERSION: ${{ gitea.ref_name }}
|
||||||
RESULT_IMAGE_NAME: tesses50/crosslang
|
RESULT_IMAGE_NAME: tesses50/crosslang
|
||||||
@@ -15,15 +15,13 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
build-ppc:
|
build-ppc:
|
||||||
name: "🔨 Build for PowerPC"
|
name: "🔨 Build for PowerPC"
|
||||||
runs-on: msi-walmart
|
runs-on: asrock
|
||||||
container:
|
container:
|
||||||
image: git.tesses.org/tesses50/linux-ppc:latest
|
image: git.tesses.org/tesses50/linux-ppc:latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: bash build-for-ppc.sh
|
- run: bash build-for-ppc.sh
|
||||||
- uses: akkuman/gitea-release-action@v1
|
- uses: akkuman/gitea-release-action@v1
|
||||||
env:
|
|
||||||
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
|
||||||
with:
|
with:
|
||||||
prerelease: true
|
prerelease: true
|
||||||
files: |-
|
files: |-
|
||||||
@@ -32,15 +30,15 @@ jobs:
|
|||||||
build-packages:
|
build-packages:
|
||||||
name: "🔨 Build for everything else"
|
name: "🔨 Build for everything else"
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- container: "git.tesses.org/tesses50/linux-x64:latest"
|
- container: "git.tesses.org/tesses50/linux-x64:latest"
|
||||||
puter: "msi-walmart"
|
puter: "asrock"
|
||||||
nfpmName: "amd64"
|
nfpmName: "amd64"
|
||||||
debianName: "x86_64-linux-gnu"
|
debianName: "x86_64-linux-gnu"
|
||||||
- container: "git.tesses.org/tesses50/linux-x86:latest"
|
- container: "git.tesses.org/tesses50/linux-x86:latest"
|
||||||
puter: "asrock"
|
puter: "msi-walmart"
|
||||||
nfpmName: "386"
|
nfpmName: "386"
|
||||||
debianName: "i386-linux-gnu"
|
debianName: "i386-linux-gnu"
|
||||||
- container: "git.tesses.org/tesses50/linux-arm:latest"
|
- container: "git.tesses.org/tesses50/linux-arm:latest"
|
||||||
@@ -54,7 +52,7 @@ jobs:
|
|||||||
- container: "git.tesses.org/tesses50/linux-riscv64:latest"
|
- container: "git.tesses.org/tesses50/linux-riscv64:latest"
|
||||||
nfpmName: "riscv64"
|
nfpmName: "riscv64"
|
||||||
debianName: "riscv64-linux-gnu"
|
debianName: "riscv64-linux-gnu"
|
||||||
puter: "asrock"
|
puter: "msi-walmart"
|
||||||
runs-on: ${{ matrix.puter }}
|
runs-on: ${{ matrix.puter }}
|
||||||
container:
|
container:
|
||||||
image: ${{ matrix.container }}
|
image: ${{ matrix.container }}
|
||||||
@@ -62,30 +60,15 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: bash build-for-nfpm.sh ${{ matrix.nfpmName }} ${{ matrix.debianName }}
|
- run: bash build-for-nfpm.sh ${{ matrix.nfpmName }} ${{ matrix.debianName }}
|
||||||
- uses: akkuman/gitea-release-action@v1
|
- uses: akkuman/gitea-release-action@v1
|
||||||
env:
|
|
||||||
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
|
||||||
with:
|
with:
|
||||||
prerelease: true
|
prerelease: true
|
||||||
files: |-
|
files: |-
|
||||||
artifacts/**
|
artifacts/**
|
||||||
|
|
||||||
|
docker:
|
||||||
update-tap:
|
|
||||||
runs-on: asrock
|
runs-on: asrock
|
||||||
container: git.tesses.org/tesses50/global-containers-mingw:latest
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: |
|
|
||||||
mkdir -p artifacts
|
|
||||||
env -C Packaging/Windows bash build.sh
|
|
||||||
- uses: akkuman/gitea-release-action@v1
|
|
||||||
env:
|
|
||||||
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
|
||||||
with:
|
|
||||||
prerelease: true
|
|
||||||
files: |-
|
|
||||||
artifacts/**
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
- name: Log in to registry
|
- name: Log in to registry
|
||||||
@@ -100,7 +83,14 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ env.GITEA_DOMAIN }}/${{ env.RESULT_IMAGE_NAME }}:latest
|
tags: |
|
||||||
|
${{ env.GITEA_DOMAIN }}/${{ env.RESULT_IMAGE_NAME }}:latest
|
||||||
|
${{ env.GITEA_DOMAIN }}/${{ env.RESULT_IMAGE_NAME }}:${{ env.VERSION }}
|
||||||
|
|
||||||
|
update-tap:
|
||||||
|
runs-on: r420
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: "master"
|
ref: "master"
|
||||||
@@ -115,3 +105,17 @@ jobs:
|
|||||||
git add .
|
git add .
|
||||||
git commit -m "Push crosslang=${{ env.VERSION }}"
|
git commit -m "Push crosslang=${{ env.VERSION }}"
|
||||||
git push
|
git push
|
||||||
|
|
||||||
|
windows:
|
||||||
|
runs-on: asrock
|
||||||
|
container: git.tesses.org/tesses50/global-containers-mingw:latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- run: |
|
||||||
|
mkdir -p artifacts
|
||||||
|
env -C Packaging/Windows bash build.sh
|
||||||
|
- uses: akkuman/gitea-release-action@v1
|
||||||
|
with:
|
||||||
|
prerelease: true
|
||||||
|
files: |-
|
||||||
|
artifacts/**
|
||||||
@@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 0.0.14
|
||||||
|
Rebase on tessesframework 0.0.12, add offline updating of the shell
|
||||||
|
|
||||||
|
## 0.0.13
|
||||||
|
Fix the event loop so it isn't 100% CPU utilization
|
||||||
|
|
||||||
## 0.0.12
|
## 0.0.12
|
||||||
Fix fetchcontent, add constant time compare for bytearray
|
Fix fetchcontent, add constant time compare for bytearray
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ set(CROSSLANG_STATIC ${TESSESFRAMEWORK_STATIC} CACHE INTERNAL "For CrossLang" FO
|
|||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
TessesFramework
|
TessesFramework
|
||||||
GIT_REPOSITORY https://git.tesses.org/tesses50/tessesframework.git
|
GIT_REPOSITORY https://git.tesses.org/tesses50/tessesframework.git
|
||||||
GIT_TAG d99001d6ebb957272f399dd371bf571c8c16f248
|
GIT_TAG f6f81bf9099e672300a0cd51c3cb0f1c2d1e54e7
|
||||||
)
|
)
|
||||||
set(TESSESFRAMEWORK_ENABLE_EXAMPLES OFF)
|
set(TESSESFRAMEWORK_ENABLE_EXAMPLES OFF)
|
||||||
FetchContent_MakeAvailable(TessesFramework)
|
FetchContent_MakeAvailable(TessesFramework)
|
||||||
|
|||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
set(CROSSLANG_MAJOR_VERSION 0)
|
set(CROSSLANG_MAJOR_VERSION 0)
|
||||||
set(CROSSLANG_MINOR_VERSION 0)
|
set(CROSSLANG_MINOR_VERSION 0)
|
||||||
set(CROSSLANG_PATCH_VERSION 12)
|
set(CROSSLANG_PATCH_VERSION 14)
|
||||||
|
|||||||
@@ -112,6 +112,7 @@ TObject CrossLangShell(GCList &ls, std::vector<std::string> &argv) {
|
|||||||
auto subdir =
|
auto subdir =
|
||||||
std::make_shared<Tesses::Framework::Filesystem::SubdirFilesystem>(
|
std::make_shared<Tesses::Framework::Filesystem::SubdirFilesystem>(
|
||||||
Tesses::Framework::Filesystem::LocalFS, dir);
|
Tesses::Framework::Filesystem::LocalFS, dir);
|
||||||
|
if (argv.size() == 2) {
|
||||||
HttpRequest req;
|
HttpRequest req;
|
||||||
req.followRedirects = true;
|
req.followRedirects = true;
|
||||||
req.url = "https://redirect.tesses.net/crosslang-shell";
|
req.url = "https://redirect.tesses.net/crosslang-shell";
|
||||||
@@ -129,7 +130,19 @@ TObject CrossLangShell(GCList &ls, std::vector<std::string> &argv) {
|
|||||||
<< std::endl;
|
<< std::endl;
|
||||||
return (int64_t)1;
|
return (int64_t)1;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (Tesses::Framework::Filesystem::LocalFS->FileExists(argv[2])) {
|
||||||
|
auto strm = Tesses::Framework::Filesystem::LocalFS->OpenFile(
|
||||||
|
argv[2], "rb");
|
||||||
|
CrossLang::CrossArchiveExtract(strm, subdir);
|
||||||
return (int64_t)0;
|
return (int64_t)0;
|
||||||
|
} else {
|
||||||
|
Tesses::Framework::Console::WriteView("Unable to open file \"");
|
||||||
|
Tesses::Framework::Console::WriteView(argv[2]);
|
||||||
|
Tesses::Framework::Console::WriteLineView("\"");
|
||||||
|
return (int64_t)1;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Tesses::Framework::Filesystem::LocalFS->RegularFileExists(filename)) {
|
if (!Tesses::Framework::Filesystem::LocalFS->RegularFileExists(filename)) {
|
||||||
|
|||||||
@@ -85,7 +85,9 @@ int main(int argc, char **argv) {
|
|||||||
"file, used to be crossdump");
|
"file, used to be crossdump");
|
||||||
Console::WriteLine("vm: interpert bytecode file, "
|
Console::WriteLine("vm: interpert bytecode file, "
|
||||||
"used to be crossvm");
|
"used to be crossvm");
|
||||||
Console::WriteLine("update-shell: update the shell");
|
Console::WriteLine(
|
||||||
|
"update-shell: update the shell (can update offline now "
|
||||||
|
"if you pass a crvm as another argument)");
|
||||||
Console::WriteLine(
|
Console::WriteLine(
|
||||||
"configdir: print the config directory");
|
"configdir: print the config directory");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user