diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 390cbad..9dc0ebd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,57 +28,57 @@ jobs: run: zig build working-directory: commy - build: - strategy: - matrix: - os: [ubuntu-latest] - runs-on: ${{matrix.os}} - steps: - - name: Checkout commy - uses: actions/checkout@v2 - with: - path: commy - - name: Setup Zig - uses: goto-bus-stop/setup-zig@v1 - with: - version: 0.13.0 - - - name: Build x86_64-windows - working-directory: commy - run: mkdir -p bin && zig build -Dgit_commit=commit/$(git rev-parse HEAD) -Doptimize=ReleaseSmall -Dtarget=x86_64-windows && cp zig-out/bin/commy.exe bin/commy-x86_64-windows.exe - - - name: Build x86_64-macos - working-directory: commy - run: mkdir -p bin && zig build -Dgit_commit=commit/$(git rev-parse HEAD) -Doptimize=ReleaseSmall -Dtarget=x86_64-macos && cp zig-out/bin/commy bin/commy-x86_64-macos - - - name: Build x86_64-linux - working-directory: commy - run: mkdir -p bin && zig build -Dgit_commit=commit/$(git rev-parse HEAD) -Doptimize=ReleaseSmall -Dtarget=x86_64-linux && cp zig-out/bin/commy bin/commy-x86_64-linux - - - name: Build x86-linux - working-directory: commy - run: mkdir -p bin && zig build -Dgit_commit=commit/$(git rev-parse HEAD) -Doptimize=ReleaseSmall -Dtarget=x86-linux && cp zig-out/bin/commy bin/commy-x86-linux - - - name: Build aarch64-windows - working-directory: commy - run: mkdir -p bin && zig build -Dgit_commit=commit/$(git rev-parse HEAD) -Doptimize=ReleaseSmall -Dtarget=aarch64-windows && cp zig-out/bin/commy.exe bin/commy-aarch64-windows.exe - - - name: Build aarch64-linux - working-directory: commy - run: mkdir -p bin && zig build -Dgit_commit=commit/$(git rev-parse HEAD) -Doptimize=ReleaseSmall -Dtarget=aarch64-linux && cp zig-out/bin/commy bin/commy-aarch64-linux - - - name: Build aarch64-macos - working-directory: commy - run: mkdir -p bin && zig build -Dgit_commit=commit/$(git rev-parse HEAD) -Doptimize=ReleaseSmall -Dtarget=aarch64-macos && cp zig-out/bin/commy bin/commy-aarch64-macos - - - name: upload - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - tag: ${{ github.ref }} - file: commy/bin/* - file_glob: true - asset_name: windows - overwrite: true - body: "Latest binaries" - +# build: +# strategy: +# matrix: +# os: [ubuntu-latest] +# runs-on: ${{matrix.os}} +# steps: +# - name: Checkout commy +# uses: actions/checkout@v2 +# with: +# path: commy +# - name: Setup Zig +# uses: goto-bus-stop/setup-zig@v1 +# with: +# version: 0.13.0 +# +# - name: Build x86_64-windows +# working-directory: commy +# run: mkdir -p bin && zig build -Dgit_commit=commit/$(git rev-parse HEAD) -Doptimize=ReleaseSmall -Dtarget=x86_64-windows && cp zig-out/bin/commy.exe bin/commy-x86_64-windows.exe +# +# - name: Build x86_64-macos +# working-directory: commy +# run: mkdir -p bin && zig build -Dgit_commit=commit/$(git rev-parse HEAD) -Doptimize=ReleaseSmall -Dtarget=x86_64-macos && cp zig-out/bin/commy bin/commy-x86_64-macos +# +# - name: Build x86_64-linux +# working-directory: commy +# run: mkdir -p bin && zig build -Dgit_commit=commit/$(git rev-parse HEAD) -Doptimize=ReleaseSmall -Dtarget=x86_64-linux && cp zig-out/bin/commy bin/commy-x86_64-linux +# +# - name: Build x86-linux +# working-directory: commy +# run: mkdir -p bin && zig build -Dgit_commit=commit/$(git rev-parse HEAD) -Doptimize=ReleaseSmall -Dtarget=x86-linux && cp zig-out/bin/commy bin/commy-x86-linux +# +# - name: Build aarch64-windows +# working-directory: commy +# run: mkdir -p bin && zig build -Dgit_commit=commit/$(git rev-parse HEAD) -Doptimize=ReleaseSmall -Dtarget=aarch64-windows && cp zig-out/bin/commy.exe bin/commy-aarch64-windows.exe +# +# - name: Build aarch64-linux +# working-directory: commy +# run: mkdir -p bin && zig build -Dgit_commit=commit/$(git rev-parse HEAD) -Doptimize=ReleaseSmall -Dtarget=aarch64-linux && cp zig-out/bin/commy bin/commy-aarch64-linux +# +# - name: Build aarch64-macos +# working-directory: commy +# run: mkdir -p bin && zig build -Dgit_commit=commit/$(git rev-parse HEAD) -Doptimize=ReleaseSmall -Dtarget=aarch64-macos && cp zig-out/bin/commy bin/commy-aarch64-macos +# +# - name: upload +# uses: svenstaro/upload-release-action@v2 +# with: +# repo_token: ${{ secrets.GITHUB_TOKEN }} +# tag: ${{ github.ref }} +# file: commy/bin/* +# file_glob: true +# asset_name: windows +# overwrite: true +# body: "Latest binaries" +#