From 37b7b9ada8c15907101833b0c1e6710472086e82 Mon Sep 17 00:00:00 2001 From: thesayyn Date: Fri, 15 Dec 2023 22:44:23 -0800 Subject: [PATCH] ci: release workflow --- .github/workflows/release.yaml | 50 ++++++++ .vscode/settings.json | 92 --------------- targets.txt | 205 +++++++++++++++++++++++++++++++++ third_party/protobuf | 1 + 4 files changed, 256 insertions(+), 92 deletions(-) create mode 100644 .github/workflows/release.yaml delete mode 100644 .vscode/settings.json create mode 100644 targets.txt create mode 160000 third_party/protobuf diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..ba01020 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,50 @@ +on: + push: + branches: + - main + +jobs: + release: + name: Release - ${{ matrix.platform.release_for }} + strategy: + matrix: + platform: + - release_for: FreeBSD-x86_64 + os: ubuntu-20.04 + target: x86_64-unknown-freebsd + bin: conform + name: conform-FreeBSD-x86_64.tar.gz + command: build + + # - release_for: Windows-x86_64 + # os: windows-latest + # target: x86_64-pc-windows-msvc + # bin: conform.exe + # name: conform-Windows-x86_64.zip + # command: build + + # - release_for: macOS-x86_64 + # os: macOS-latest + # target: x86_64-apple-darwin + # bin: conform + # name: conform-Darwin-x86_64.tar.gz + # command: build + + + runs-on: ${{ matrix.platform.os }} + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + - run: | + ls -l + cat include/conformance.cmake > third_party/protobuf/cmake/conformance.cmake + - name: Build binary + uses: houseabsolute/actions-rust-cross@v0 + with: + command: ${{ matrix.platform.command }} + target: ${{ matrix.platform.target }} + args: "--locked --release" + strip: true + \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index dd8a7d5..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "files.associations": { - "*.mtree": "ini", - "__bit_reference": "cpp", - "__bits": "cpp", - "__config": "cpp", - "__debug": "cpp", - "__errc": "cpp", - "__hash_table": "cpp", - "__locale": "cpp", - "__mutex_base": "cpp", - "__node_handle": "cpp", - "__split_buffer": "cpp", - "__threading_support": "cpp", - "__tree": "cpp", - "__tuple": "cpp", - "__verbose_abort": "cpp", - "any": "cpp", - "array": "cpp", - "atomic": "cpp", - "bit": "cpp", - "bitset": "cpp", - "cctype": "cpp", - "cfenv": "cpp", - "cinttypes": "cpp", - "clocale": "cpp", - "cmath": "cpp", - "complex": "cpp", - "condition_variable": "cpp", - "csignal": "cpp", - "cstdarg": "cpp", - "cstddef": "cpp", - "cstdint": "cpp", - "cstdio": "cpp", - "cstdlib": "cpp", - "cstring": "cpp", - "ctime": "cpp", - "cwchar": "cpp", - "cwctype": "cpp", - "deque": "cpp", - "exception": "cpp", - "forward_list": "cpp", - "fstream": "cpp", - "future": "cpp", - "initializer_list": "cpp", - "iomanip": "cpp", - "ios": "cpp", - "iosfwd": "cpp", - "iostream": "cpp", - "istream": "cpp", - "limits": "cpp", - "list": "cpp", - "locale": "cpp", - "map": "cpp", - "memory": "cpp", - "mutex": "cpp", - "new": "cpp", - "optional": "cpp", - "ostream": "cpp", - "queue": "cpp", - "ratio": "cpp", - "regex": "cpp", - "scoped_allocator": "cpp", - "set": "cpp", - "sstream": "cpp", - "stack": "cpp", - "stdexcept": "cpp", - "streambuf": "cpp", - "string": "cpp", - "string_view": "cpp", - "system_error": "cpp", - "thread": "cpp", - "tuple": "cpp", - "type_traits": "cpp", - "typeindex": "cpp", - "typeinfo": "cpp", - "unordered_map": "cpp", - "unordered_set": "cpp", - "valarray": "cpp", - "variant": "cpp", - "vector": "cpp", - "__nullptr": "cpp", - "__string": "cpp", - "chrono": "cpp", - "compare": "cpp", - "concepts": "cpp", - "numeric": "cpp", - "random": "cpp", - "algorithm": "cpp", - "*.inc": "cpp" - } -} \ No newline at end of file diff --git a/targets.txt b/targets.txt new file mode 100644 index 0000000..93d7c64 --- /dev/null +++ b/targets.txt @@ -0,0 +1,205 @@ +aarch64-apple-darwin +aarch64-apple-ios +aarch64-apple-ios-macabi +aarch64-apple-ios-sim +aarch64-apple-tvos +aarch64-apple-watchos-sim +aarch64-fuchsia +aarch64-kmc-solid_asp3 +aarch64-linux-android +aarch64-nintendo-switch-freestanding +aarch64-pc-windows-gnullvm +aarch64-pc-windows-msvc +aarch64-unknown-freebsd +aarch64-unknown-fuchsia +aarch64-unknown-hermit +aarch64-unknown-linux-gnu +aarch64-unknown-linux-gnu_ilp32 +aarch64-unknown-linux-musl +aarch64-unknown-linux-ohos +aarch64-unknown-netbsd +aarch64-unknown-none +aarch64-unknown-none-softfloat +aarch64-unknown-nto-qnx710 +aarch64-unknown-openbsd +aarch64-unknown-redox +aarch64-unknown-uefi +aarch64-uwp-windows-msvc +aarch64-wrs-vxworks +aarch64_be-unknown-linux-gnu +aarch64_be-unknown-linux-gnu_ilp32 +arm-linux-androideabi +arm-unknown-linux-gnueabi +arm-unknown-linux-gnueabihf +arm-unknown-linux-musleabi +arm-unknown-linux-musleabihf +arm64_32-apple-watchos +armeb-unknown-linux-gnueabi +armebv7r-none-eabi +armebv7r-none-eabihf +armv4t-none-eabi +armv4t-unknown-linux-gnueabi +armv5te-none-eabi +armv5te-unknown-linux-gnueabi +armv5te-unknown-linux-musleabi +armv5te-unknown-linux-uclibceabi +armv6-unknown-freebsd +armv6-unknown-netbsd-eabihf +armv6k-nintendo-3ds +armv7-apple-ios +armv7-linux-androideabi +armv7-sony-vita-newlibeabihf +armv7-unknown-freebsd +armv7-unknown-linux-gnueabi +armv7-unknown-linux-gnueabihf +armv7-unknown-linux-musleabi +armv7-unknown-linux-musleabihf +armv7-unknown-linux-ohos +armv7-unknown-linux-uclibceabi +armv7-unknown-linux-uclibceabihf +armv7-unknown-netbsd-eabihf +armv7-wrs-vxworks-eabihf +armv7a-kmc-solid_asp3-eabi +armv7a-kmc-solid_asp3-eabihf +armv7a-none-eabi +armv7a-none-eabihf +armv7k-apple-watchos +armv7r-none-eabi +armv7r-none-eabihf +armv7s-apple-ios +asmjs-unknown-emscripten +avr-unknown-gnu-atmega328 +bpfeb-unknown-none +bpfel-unknown-none +hexagon-unknown-linux-musl +i386-apple-ios +i586-pc-nto-qnx700 +i586-pc-windows-msvc +i586-unknown-linux-gnu +i586-unknown-linux-musl +i686-apple-darwin +i686-linux-android +i686-pc-windows-gnu +i686-pc-windows-msvc +i686-unknown-freebsd +i686-unknown-haiku +i686-unknown-linux-gnu +i686-unknown-linux-musl +i686-unknown-netbsd +i686-unknown-openbsd +i686-unknown-uefi +i686-uwp-windows-gnu +i686-uwp-windows-msvc +i686-wrs-vxworks +loongarch64-unknown-linux-gnu +m68k-unknown-linux-gnu +mips-unknown-linux-gnu +mips-unknown-linux-musl +mips-unknown-linux-uclibc +mips64-openwrt-linux-musl +mips64-unknown-linux-gnuabi64 +mips64-unknown-linux-muslabi64 +mips64el-unknown-linux-gnuabi64 +mips64el-unknown-linux-muslabi64 +mipsel-sony-psp +mipsel-sony-psx +mipsel-unknown-linux-gnu +mipsel-unknown-linux-musl +mipsel-unknown-linux-uclibc +mipsel-unknown-none +mipsisa32r6-unknown-linux-gnu +mipsisa32r6el-unknown-linux-gnu +mipsisa64r6-unknown-linux-gnuabi64 +mipsisa64r6el-unknown-linux-gnuabi64 +msp430-none-elf +nvptx64-nvidia-cuda +powerpc-unknown-freebsd +powerpc-unknown-linux-gnu +powerpc-unknown-linux-gnuspe +powerpc-unknown-linux-musl +powerpc-unknown-netbsd +powerpc-unknown-openbsd +powerpc-wrs-vxworks +powerpc-wrs-vxworks-spe +powerpc64-ibm-aix +powerpc64-unknown-freebsd +powerpc64-unknown-linux-gnu +powerpc64-unknown-linux-musl +powerpc64-unknown-openbsd +powerpc64-wrs-vxworks +powerpc64le-unknown-freebsd +powerpc64le-unknown-linux-gnu +powerpc64le-unknown-linux-musl +riscv32gc-unknown-linux-gnu +riscv32gc-unknown-linux-musl +riscv32i-unknown-none-elf +riscv32im-unknown-none-elf +riscv32imac-unknown-none-elf +riscv32imac-unknown-xous-elf +riscv32imc-esp-espidf +riscv32imc-unknown-none-elf +riscv64gc-unknown-freebsd +riscv64gc-unknown-fuchsia +riscv64gc-unknown-linux-gnu +riscv64gc-unknown-linux-musl +riscv64gc-unknown-none-elf +riscv64gc-unknown-openbsd +riscv64imac-unknown-none-elf +s390x-unknown-linux-gnu +s390x-unknown-linux-musl +sparc-unknown-linux-gnu +sparc64-unknown-linux-gnu +sparc64-unknown-netbsd +sparc64-unknown-openbsd +sparcv9-sun-solaris +thumbv4t-none-eabi +thumbv5te-none-eabi +thumbv6m-none-eabi +thumbv7a-pc-windows-msvc +thumbv7a-uwp-windows-msvc +thumbv7em-none-eabi +thumbv7em-none-eabihf +thumbv7m-none-eabi +thumbv7neon-linux-androideabi +thumbv7neon-unknown-linux-gnueabihf +thumbv7neon-unknown-linux-musleabihf +thumbv8m.base-none-eabi +thumbv8m.main-none-eabi +thumbv8m.main-none-eabihf +wasm32-unknown-emscripten +wasm32-unknown-unknown +wasm32-wasi +wasm64-unknown-unknown +x86_64-apple-darwin +x86_64-apple-ios +x86_64-apple-ios-macabi +x86_64-apple-tvos +x86_64-apple-watchos-sim +x86_64-fortanix-unknown-sgx +x86_64-fuchsia +x86_64-linux-android +x86_64-pc-nto-qnx710 +x86_64-pc-solaris +x86_64-pc-windows-gnu +x86_64-pc-windows-gnullvm +x86_64-pc-windows-msvc +x86_64-sun-solaris +x86_64-unknown-dragonfly +x86_64-unknown-freebsd +x86_64-unknown-fuchsia +x86_64-unknown-haiku +x86_64-unknown-hermit +x86_64-unknown-illumos +x86_64-unknown-l4re-uclibc +x86_64-unknown-linux-gnu +x86_64-unknown-linux-gnux32 +x86_64-unknown-linux-musl +x86_64-unknown-netbsd +x86_64-unknown-none +x86_64-unknown-openbsd +x86_64-unknown-redox +x86_64-unknown-uefi +x86_64-uwp-windows-gnu +x86_64-uwp-windows-msvc +x86_64-wrs-vxworks +x86_64h-apple-darwin diff --git a/third_party/protobuf b/third_party/protobuf new file mode 160000 index 0000000..481c4fe --- /dev/null +++ b/third_party/protobuf @@ -0,0 +1 @@ +Subproject commit 481c4fede513a606f3cb061cc0ad0a839f21f781