Skip to content

Commit

Permalink
ci: update outdated actions
Browse files Browse the repository at this point in the history
  • Loading branch information
iHsin committed Mar 23, 2024
1 parent 1dbddb1 commit 30a70ca
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 26 deletions.
29 changes: 17 additions & 12 deletions .github/workflows/binary-pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,12 @@ jobs:
file-ext: ""
extra-args: ""


steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive
submodules: true

- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
Expand All @@ -152,7 +151,7 @@ jobs:
# Build client and server separately
# But i gotta say that's ugly
# Blame me that can't figure out how GHA matrix works
- uses: actions-rs/cargo@v1
- uses: clechasseur/rs-cargo@v2
with:
use-cross: ${{ matrix.cross }}
command: build
Expand All @@ -162,12 +161,12 @@ jobs:
run: mv target/${{ matrix.target }}/release/${{ env.PACKAGE }}${{ matrix.file-ext }} ${{ env.PACKAGE }}-${{ matrix.release-name }}${{ matrix.file-ext }}

- name: Upload binaries
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: compile
name: binary-${{ matrix.target }}-${{ env.PACKAGE }}
path: ${{ env.PACKAGE }}-${{ matrix.release-name }}${{ matrix.file-ext }}

- uses: actions-rs/cargo@v1
- uses: clechasseur/rs-cargo@v2
with:
use-cross: ${{ matrix.cross }}
command: build
Expand All @@ -177,9 +176,9 @@ jobs:
run: mv target/${{ matrix.target }}/release/${{ env.PACKAGE2 }}${{ matrix.file-ext }} ${{ env.PACKAGE2 }}-${{ matrix.release-name }}${{ matrix.file-ext }}

- name: Upload binaries
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: compile
name: binary-${{ matrix.target }}-${{ env.PACKAGE2 }}
path: ${{ env.PACKAGE2 }}-${{ matrix.release-name }}${{ matrix.file-ext }}

release:
Expand All @@ -191,10 +190,16 @@ jobs:
with:
submodules: recursive

- name: Merge binaries
uses: actions/upload-artifact/merge@v4
with:
name: binaries
pattern: binary-*

- name: Download binaries
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: compile
name: binaries
path: ./packages

- name: Github release
Expand Down
29 changes: 17 additions & 12 deletions .github/workflows/binary-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,12 @@ jobs:
file-ext: ""
extra-args: ""


steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive
submodules: true

- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
Expand All @@ -152,7 +151,7 @@ jobs:
# Build client and server separately
# But i gotta say that's ugly
# Blame me that can't figure out how GHA matrix works
- uses: actions-rs/cargo@v1
- uses: clechasseur/rs-cargo@v2
with:
use-cross: ${{ matrix.cross }}
command: build
Expand All @@ -162,12 +161,12 @@ jobs:
run: mv target/${{ matrix.target }}/release/${{ env.PACKAGE }}${{ matrix.file-ext }} ${{ env.PACKAGE }}-${{ matrix.release-name }}${{ matrix.file-ext }}

- name: Upload binaries
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: compile
name: binary-${{ matrix.target }}-${{ env.PACKAGE }}
path: ${{ env.PACKAGE }}-${{ matrix.release-name }}${{ matrix.file-ext }}

- uses: actions-rs/cargo@v1
- uses: clechasseur/rs-cargo@v2
with:
use-cross: ${{ matrix.cross }}
command: build
Expand All @@ -177,9 +176,9 @@ jobs:
run: mv target/${{ matrix.target }}/release/${{ env.PACKAGE2 }}${{ matrix.file-ext }} ${{ env.PACKAGE2 }}-${{ matrix.release-name }}${{ matrix.file-ext }}

- name: Upload binaries
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: compile
name: binary-${{ matrix.target }}-${{ env.PACKAGE2 }}
path: ${{ env.PACKAGE2 }}-${{ matrix.release-name }}${{ matrix.file-ext }}

release:
Expand All @@ -191,10 +190,16 @@ jobs:
with:
submodules: recursive

- name: Merge binaries
uses: actions/upload-artifact/merge@v4
with:
name: binaries
pattern: binary-*

- name: Download binaries
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: compile
name: binaries
path: ./packages

- name: Github release
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
members = ["tuic", "tuic-quinn", "tuic-server", "tuic-client"]

[profile.release]
opt-level = 'z'
opt-level = 3
debug = 1
lto = true
incremental = false
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Delicately-TUICed 0-RTT proxy protocol
A fork of original TUIC repo https://github.com/EAimTY/tuic

Maintain Only. No more new features but
there would be bugfixs or performance improvements
there would be bugfixes or performance improvements

## Introduction

Expand Down

0 comments on commit 30a70ca

Please sign in to comment.