From f4416a370602e819f36a360751c89acd6115e0cc Mon Sep 17 00:00:00 2001 From: Leonardo Custodio Date: Sun, 22 Oct 2023 16:02:05 -0300 Subject: [PATCH 1/4] test release workflow --- .github/workflows/release.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..42eb527 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +name: Release binaries +on: + pull_request: +# release: +# types: [created] + +jobs: + release: + name: release ${{ matrix.target }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - target: x86_64-pc-windows-gnu + archive: zip + - target: x86_64-unknown-linux-musl + archive: tar.gz tar.xz tar.zst + - target: x86_64-apple-darwin + archive: zip + steps: + - uses: actions/checkout@master + - name: Compile and release + uses: rust-build/rust-build.action@v1.4.3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + RUSTTARGET: ${{ matrix.target }} + ARCHIVE_TYPES: ${{ matrix.archive }} \ No newline at end of file From 8f6e37d89e824cfd25ce93f0d8716f106008ea1a Mon Sep 17 00:00:00 2001 From: Leonardo Custodio Date: Sun, 22 Oct 2023 16:23:10 -0300 Subject: [PATCH 2/4] test --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 42eb527..d86525d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,10 +14,13 @@ jobs: include: - target: x86_64-pc-windows-gnu archive: zip + package: [lib, bin] - target: x86_64-unknown-linux-musl archive: tar.gz tar.xz tar.zst + package: [lib, bin] - target: x86_64-apple-darwin archive: zip + package: [lib, bin] steps: - uses: actions/checkout@master - name: Compile and release @@ -26,4 +29,5 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: RUSTTARGET: ${{ matrix.target }} + SRC_DIR: ${{ matrix.package }} ARCHIVE_TYPES: ${{ matrix.archive }} \ No newline at end of file From 0668f355517889a871d9c10ef22b67ff662fff95 Mon Sep 17 00:00:00 2001 From: Leonardo Custodio Date: Sun, 22 Oct 2023 16:25:32 -0300 Subject: [PATCH 3/4] test --- .github/workflows/release.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d86525d..53fcf60 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,13 +14,10 @@ jobs: include: - target: x86_64-pc-windows-gnu archive: zip - package: [lib, bin] - target: x86_64-unknown-linux-musl archive: tar.gz tar.xz tar.zst - package: [lib, bin] - target: x86_64-apple-darwin archive: zip - package: [lib, bin] steps: - uses: actions/checkout@master - name: Compile and release @@ -29,5 +26,5 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: RUSTTARGET: ${{ matrix.target }} - SRC_DIR: ${{ matrix.package }} + SRC_DIR: bin ARCHIVE_TYPES: ${{ matrix.archive }} \ No newline at end of file From 04d23384d07b7036f15cca20a40b73f8cec4df32 Mon Sep 17 00:00:00 2001 From: Leonardo Custodio Date: Sun, 22 Oct 2023 16:32:54 -0300 Subject: [PATCH 4/4] final --- .github/workflows/release.yml | 9 ++++----- .github/workflows/rust.yml | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 53fcf60..35a911e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,12 +1,11 @@ -name: Release binaries +name: Make Release on: - pull_request: -# release: -# types: [created] + release: + types: [created] jobs: release: - name: release ${{ matrix.target }} + name: Release ${{ matrix.target }} runs-on: ubuntu-latest strategy: fail-fast: false diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 39dc25e..d77d9de 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,4 +1,4 @@ -name: Rust +name: Test Build on: push: