From 9e4c9f7126dad337e27afb9c1c981a13fdc8f017 Mon Sep 17 00:00:00 2001 From: detherminal <76167420+detherminal@users.noreply.github.com> Date: Fri, 26 Jan 2024 17:40:57 +0300 Subject: [PATCH] version 1 fix2 --- .github/workflows/release.yml | 56 +++++++++++++++++++++++++++-------- 1 file changed, 43 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b2467d3..84b2262 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,23 +1,53 @@ -# .github/workflows/release.yml - on: release: types: [created] + push: + jobs: -release: - name: release ${{ matrix.target }} + release: + name: release ${{ matrix.target }} (with non-required env) runs-on: ubuntu-latest + if: github.event_name == 'release' strategy: - fail-fast: false - matrix: - target: [x86_64-pc-windows-gnu, x86_64-unknown-linux-musl] + fail-fast: false + matrix: + include: + - target: x86_64-pc-windows-gnu + archive: zip + - target: x86_64-unknown-linux-musl + archive: tar.gz + - target: x86_64-apple-darwin + archive: zip + - target: wasm32-wasi + archive: zip tar.gz steps: - - uses: actions/checkout@master - - name: Compile and release - uses: rust-build/rust-build.action@v1.4.4 + - uses: actions/checkout@master + - name: Compile and release + uses: rust-build/rust-build.action@master env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + RUSTTARGET: ${{ matrix.target }} + EXTRA_FILES: "README.md" + SRC_DIR: "hello" + ARCHIVE_TYPES: ${{ matrix.archive }} + PRE_BUILD: "pre_build.sh" + POST_BUILD: "test/post_build.sh" + MINIFY: "yes" + release_without_not_required: + name: release ${{ matrix.target }} + runs-on: ubuntu-latest + strategy: + fail-fast: true + matrix: + target: [x86_64-unknown-linux-musl] + steps: + - uses: actions/checkout@master + - name: Compile and release + uses: rust-build/rust-build.action@master with: - RUSTTARGET: ${{ matrix.target }} - EXTRA_FILES: "README.md LICENSE" \ No newline at end of file + RUSTTARGET: ${{ matrix.target }} + UPLOAD_MODE: none + - name: Checkout output + run: ls -laR \ No newline at end of file