Skip to content

Commit

Permalink
remove build features
Browse files Browse the repository at this point in the history
  • Loading branch information
sword-jin committed Jul 13, 2024
1 parent 8b754ae commit b729be7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
- uses: actions/checkout@v4
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Clippy
run: cargo clippy -- -D warnings
- name: Build
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# copy from https://raw.githubusercontent.com/Byron/gitoxide/main/.github/workflows/release.yml
name: release

env:
Expand Down Expand Up @@ -127,6 +126,11 @@ jobs:
echo "TARGET_FLAGS=--target ${{ matrix.target }}" >> $GITHUB_ENV
echo "TARGET_DIR=./target/${{ matrix.target }}" >> $GITHUB_ENV
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Show command used for Cargo
run: |
echo "cargo command is: ${{ env.CARGO }}"
Expand All @@ -150,7 +154,7 @@ jobs:
echo "release version: $RELEASE_VERSION"
- name: Build release binary
run: ${{ env.CARGO }} build --verbose --release ${{ env.TARGET_FLAGS }} --no-default-features --features ${{ matrix.feature }}
run: ${{ env.CARGO }} build --verbose --release ${{ env.TARGET_FLAGS }}

- name: Strip release binary (linux and macos)
if: matrix.build == 'linux' || matrix.build == 'macos'
Expand All @@ -168,7 +172,7 @@ jobs:
- name: Build archive
shell: bash
run: |
staging="tunneld-${{ matrix.feature }}-${{ env.RELEASE_VERSION }}-${{ matrix.target }}"
staging="tunneld-${{ env.RELEASE_VERSION }}-${{ matrix.target }}"
mkdir -p "$staging"
cp {README.md,LICENSE-*,CHANGELOG.md} "$staging/"
Expand Down

0 comments on commit b729be7

Please sign in to comment.