Skip to content

Commit

Permalink
Test release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-cpsn committed Feb 23, 2024
1 parent 33e7392 commit e6507e3
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 17 deletions.
76 changes: 60 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,73 @@
# .github/workflows/release.yml

name: CD # Continuous Deployment

permissions:
contents: write

on:
release:
types: [created]
types: [published]

env:
CARGO_INCREMENTAL: 0
CARGO_NET_GIT_FETCH_WITH_CLI: true
CARGO_NET_RETRY: 10
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
RUSTFLAGS: -D warnings
RUSTUP_MAX_RETRIES: 10

defaults:
run:
shell: bash

jobs:
release:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
upload-assets:
name: ${{ matrix.target }}
if: github.repository_owner == 'MyOwner' && startsWith(github.event.release.name, 'my-bin-v')
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-pc-windows-gnu
archive: zip
- target: aarch64-unknown-linux-gnu
os: ubuntu-22.04
- target: aarch64-unknown-linux-musl
os: ubuntu-22.04
- target: aarch64-apple-darwin
os: macos-12
- target: aarch64-pc-windows-msvc
os: windows-2022
- target: x86_64-unknown-linux-gnu
os: ubuntu-22.04
- target: x86_64-unknown-linux-musl
archive: tar.gz tar.xz tar.zst
os: ubuntu-22.04
- target: x86_64-apple-darwin
archive: zip
os: macos-12
- target: x86_64-pc-windows-msvc
os: windows-2022
- target: x86_64-unknown-freebsd
os: ubuntu-22.04
- target: universal-apple-darwin
os: macos-12
timeout-minutes: 60
steps:
- uses: actions/checkout@master
- name: Compile and release
uses: rust-build/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/setup-cross-toolchain-action@v1
with:
target: ${{ matrix.target }}
if: startsWith(matrix.os, 'ubuntu') && !contains(matrix.target, '-musl')
- uses: taiki-e/install-action@cross
if: contains(matrix.target, '-musl')
- run: echo "RUSTFLAGS=${RUSTFLAGS} -C target-feature=+crt-static" >> "${GITHUB_ENV}"
if: endsWith(matrix.target, 'windows-msvc')
- uses: taiki-e/upload-rust-binary-action@v1
with:
RUSTTARGET: ${{ matrix.target }}
ARCHIVE_TYPES: ${{ matrix.archive }}
bin: my-bin
target: ${{ matrix.target }}
tar: all
zip: windows
token: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ A documentation will soon be published in the wiki section
- Headers management
- Cookies management
- Proxy configuration
- Manage many collection
- Postman & Insomnia import
- Async request support
- File based memory (for now the memory is blank at every program startup)
Expand All @@ -42,6 +41,8 @@ A documentation will soon be published in the wiki section
- Document whole code

- **To improve**
- Create collection
- Rename request
- Keymap help on bottom right

### v2.0.0
Expand Down

0 comments on commit e6507e3

Please sign in to comment.