From a2e2116f988df1b0561669d049da1b3f686167a8 Mon Sep 17 00:00:00 2001 From: Mike Nolan Date: Fri, 25 Sep 2026 22:34:54 -0500 Subject: [PATCH] First commit --- .gitea/workflows/work.yml | 48 +++++++++++++++++++++++++++++++++++++++ cross.json | 8 +++++++ src/mylib.tcross | 5 ++++ 3 files changed, 61 insertions(+) create mode 100644 .gitea/workflows/work.yml create mode 100644 cross.json create mode 100644 src/mylib.tcross diff --git a/.gitea/workflows/work.yml b/.gitea/workflows/work.yml new file mode 100644 index 0000000..39c5b10 --- /dev/null +++ b/.gitea/workflows/work.yml @@ -0,0 +1,48 @@ +name: Build and Deploy on Tag +on: + push: + tags: + - "v*" + +env: + PACKAGE_AND_BREW: ${{ secrets.PACKAGE_AND_BREW }} +jobs: + build-packages: + name: "🔨 Build" + runs-on: fw13-ubuntu-latest + + container: + image: "git.tesses.org/tesses50/linux-x64:latest" + steps: + - uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Log in to registry + uses: docker/login-action@v3 + with: + registry: ${{ env.GITEA_DOMAIN }} + username: ${{ env.GITEA_REGISTRY_USER }} + password: ${{ secrets.PACKAGE_AND_BREW }} + - name: Build and push image + uses: docker/build-push-action@v6 + with: + context: . + file: ./Dockerfile + push: true + tags: ${{ env.GITEA_DOMAIN }}/${{ env.RESULT_IMAGE_NAME }}:latest + - name: Install CrossLang + uses: https://git.tesses.org/tesses50/setup-crosslang@v1 + - run: | + crosslang upload-package --token="${{ secrets.CPKG_KEY }}" --host="https://cpkg.tesseslanguage.com/" + + - uses: akkuman/gitea-release-action@v1 + env: + NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18 + with: + prerelease: true + files: |- + artifacts/** + + + + \ No newline at end of file diff --git a/cross.json b/cross.json new file mode 100644 index 0000000..b5034b3 --- /dev/null +++ b/cross.json @@ -0,0 +1,8 @@ +{ + "$schema": "https:\/\/crosslang.tesseslanguage.com\/\/schema\/cross-json-schema.json", + "info": { + "type": "lib" + }, + "name": "mylib1", + "version": "1.0.0.0-prod" +} \ No newline at end of file diff --git a/src/mylib.tcross b/src/mylib.tcross new file mode 100644 index 0000000..0303f7e --- /dev/null +++ b/src/mylib.tcross @@ -0,0 +1,5 @@ +/^ Multiply two numbers ^/ +func MyLib.Times(a,b) +{ + return a * b; +}