Skip to content

Commit

Permalink
DROP
Browse files Browse the repository at this point in the history
Signed-off-by: Víctor Cuadrado Juan <vcuadradojuan@suse.de>
  • Loading branch information
viccuad committed Oct 18, 2024
1 parent 81d02a1 commit 8a93224
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 33 deletions.
76 changes: 44 additions & 32 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,30 @@ jobs:
target: ${{matrix.targetarch}}-unknown-linux-musl
override: true

- uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
with:
use-cross: true
command: build
args: --release --target ${{matrix.targetarch}}-unknown-linux-musl

- run: mv target/${{ matrix.targetarch }}-unknown-linux-musl/release/kwctl kwctl-linux-${{ matrix.targetarch }}

- name: Smoke test build
if: matrix.targetarch == 'x86_64'
run: ./kwctl-linux-x86_64 --help
# - uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
# with:
# use-cross: true
# command: build
# args: --release --target ${{matrix.targetarch}}-unknown-linux-musl
#
# - run: mv target/${{ matrix.targetarch }}-unknown-linux-musl/release/kwctl kwctl-linux-${{ matrix.targetarch }}
#
# - name: Smoke test build
# if: matrix.targetarch == 'x86_64'
# run: ./kwctl-linux-x86_64 --help

- name: fake build
run: echo "foo" > kwctl-linux-${{ matrix.targetarch }}

- name: Generate attestations
uses: actions/attest-build-provenance@v1
id: attestations
with:
subject-path: kwctl-linux-${{ matrix.targetarch }}

- name: Display structure of downloaded files
run: ls -R

- run: |
mv \
${{ steps.attestations.outputs.bundle-path }} \
Expand Down Expand Up @@ -137,17 +143,20 @@ jobs:

- run: rustup target add ${{ matrix.targetarch }}-apple-darwin

- name: Build kwctl
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
with:
command: build
args: --target=${{ matrix.targetarch }}-apple-darwin --release

- run: mv target/${{ matrix.targetarch }}-apple-darwin/release/kwctl kwctl-darwin-${{ matrix.targetarch }}

- name: Smoke test build
if: matrix.targetarch == 'x86_64'
run: ./kwctl-darwin-x86_64 --help
# - name: Build kwctl
# uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
# with:
# command: build
# args: --target=${{ matrix.targetarch }}-apple-darwin --release
#
# - run: mv target/${{ matrix.targetarch }}-apple-darwin/release/kwctl kwctl-darwin-${{ matrix.targetarch }}
#
# - name: Smoke test build
# if: matrix.targetarch == 'x86_64'
# run: ./kwctl-darwin-x86_64 --help

- name: fake build
run: echo "foo" > kwctl-darwin-${{ matrix.targetarch }}

- name: Generate attestations
uses: actions/attest-build-provenance@v1
Expand Down Expand Up @@ -235,16 +244,19 @@ jobs:
if: matrix.os == 'windows-latest'
run: git config --global core.longpaths true

- name: Build kwctl
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
with:
command: build
args: --target=x86_64-pc-windows-msvc --release

- run: mv target/x86_64-pc-windows-msvc/release/kwctl.exe kwctl-windows-x86_64.exe

- name: Smoke test build
run: .\kwctl-windows-x86_64.exe --help
# - name: Build kwctl
# uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
# with:
# command: build
# args: --target=x86_64-pc-windows-msvc --release
#
# - run: mv target/x86_64-pc-windows-msvc/release/kwctl.exe kwctl-windows-x86_64.exe
#
# - name: Smoke test build
# run: .\kwctl-windows-x86_64.exe --help

- name: fake build
run: echo "foo" > kwctl-windows-x86_64.exe

- name: Generate attestations
uses: actions/attest-build-provenance@v1
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "kwctl"
description = "Tool to manage Kubewarden policies"
version = "1.17.0"
version = "1.18.0-viccuad"
authors = ["Kubewarden Developers <kubewarden@suse.de>"]
edition = "2021"

Expand Down

0 comments on commit 8a93224

Please sign in to comment.