diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..32af92c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: Compile & Release + +on: + release: + tags: + - "v[0-9]+.[0-9]+.[0-9]+" + +env: + CARGO_TERM_COLOR: always + +jobs: + release: + name: Release ${{ matrix.target }} + runs-on: ubuntu-latest + strategy: + fail-fast: false # Don't fail all jobs even if one fails + matrix: + include: + - target: x86_64-unknown-linux-musl + archive: tar.gz tar.xz + - target: x86_64-apple-darwin + archive: zip + steps: + - uses: actions/checkout@master + - name: Compile and release + uses: rust-build/rust-build.action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + RUSTTARGET: ${{ matrix.target }} + ARCHIVE_TYPES: ${{ matrix.archive }} diff --git a/Cargo.lock b/Cargo.lock index 4e4ca01..630a7ca 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -111,7 +111,7 @@ checksum = "fb58b6451e8c2a812ad979ed1d83378caa5e927eef2622017a45f251457c2c9d" [[package]] name = "fragilebyte" -version = "0.1.1" +version = "0.2.0" dependencies = [ "clap", "local-ip-address", diff --git a/Cargo.toml b/Cargo.toml index e5ad425..c67bf52 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "fragilebyte" authors = ["Arttu Einistö"] description = "TCP socket pair for file transfer, backend for https://github.com/einisto/leightbox" -version = "0.1.1" +version = "0.2.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html