Fix TypeScript compilation error in Game SDK GuildManager - 2025-07-0… #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: 'Release version' | |
| required: true | |
| default: '1.0.0' | |
| release_notes: | |
| description: 'Release notes' | |
| required: true | |
| default: 'Initial Release' | |
| is_prerelease: | |
| description: 'Is this a prerelease?' | |
| required: false | |
| default: false | |
| type: boolean | |
| push: | |
| branches: [ main, develop, testing ] | |
| pull_request: | |
| branches: [ main, develop, testing ] | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Set up Node.js | |
| if: ${{ hashFiles('package-lock.json', 'yarn.lock', 'npm-shrinkwrap.json') != '' }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: '1.21' | |
| - name: Set up Rust | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| override: true | |
| - name: Cache node_modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| node_modules | |
| **/node_modules | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock', '**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node- | |
| - name: Cache pip | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip- | |
| - name: Cache cargo registry | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cargo/registry | |
| key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo-registry- | |
| - name: Cache cargo build | |
| uses: actions/cache@v4 | |
| with: | |
| path: target | |
| key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo-build- | |
| - name: Cache Go modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/go/pkg/mod | |
| key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-go- | |
| - name: Cache Maven packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-maven- | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| build-essential \ | |
| cmake \ | |
| libssl-dev \ | |
| libspdlog-dev \ | |
| libfmt-dev \ | |
| libnlohmann-json3-dev \ | |
| libcurl4-openssl-dev \ | |
| libsqlite3-dev \ | |
| libpq-dev \ | |
| libmysqlclient-dev \ | |
| libhiredis-dev \ | |
| libmongoc-dev \ | |
| librocksdb-dev \ | |
| libsodium-dev \ | |
| liboqs-dev \ | |
| doxygen \ | |
| graphviz | |
| - name: Build and test | |
| run: | | |
| mkdir build && cd build | |
| cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=ON | |
| make -j$(nproc) | |
| make test | |
| - name: Generate documentation | |
| run: | | |
| cd build | |
| make docs | |
| - name: Create release artifacts | |
| run: | | |
| mkdir -p release_artifacts | |
| cp -r build/*.so release_artifacts/ || true | |
| cp -r build/*.a release_artifacts/ || true | |
| cp -r build/examples release_artifacts/ || true | |
| cp -r docs release_artifacts/ || true | |
| cp README.md release_artifacts/ | |
| cp LICENSE release_artifacts/ | |
| - name: Create Release | |
| uses: actions/create-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: v${{ github.event.inputs.version }} | |
| release_name: Satox SDK v${{ github.event.inputs.version }} | |
| body: | | |
| ${{ github.event.inputs.release_notes }} | |
| ## Features | |
| - Quantum-resistant cryptography | |
| - Multi-language bindings (Python, TypeScript, Go, Rust, C#, Java, Lua, WASM) | |
| - Multi-database support (SQLite, PostgreSQL, MySQL, Redis, MongoDB, RocksDB) | |
| - Blockchain integration | |
| - Comprehensive documentation | |
| ## Downloads | |
| - Source code and binaries included in this release | |
| - Documentation available in the docs/ directory | |
| - Examples available in the examples/ directory | |
| draft: false | |
| prerelease: ${{ github.event.inputs.is_prerelease }} | |
| - name: Upload Release Assets | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./release_artifacts/ | |
| asset_name: satox-sdk-v${{ github.event.inputs.version }} | |
| asset_content_type: application/zip | |
| - name: Cleanup | |
| run: | | |
| rm -rf build | |
| rm -rf release_artifacts |