iptables comment tag + fwmark-skip when dport rewrites, bump to 0.0.8 #8
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| description: 'Tag to build (e.g. v0.0.1)' | |
| required: true | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| name: build ${{ matrix.arch }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - target: x86_64-unknown-linux-musl | |
| arch: amd64 | |
| - target: aarch64-unknown-linux-musl | |
| arch: aarch64 | |
| - target: armv7-unknown-linux-musleabihf | |
| arch: armv7 | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: install rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.target }} | |
| - name: install cross | |
| run: cargo install cross --locked --version 0.2.5 | |
| - name: build release | |
| run: cross build --release --target ${{ matrix.target }} --locked | |
| - name: stage artifact | |
| run: | | |
| set -eu | |
| mkdir -p dist | |
| cp "target/${{ matrix.target }}/release/transparent-udp-obfus" \ | |
| "dist/udp-obfus-linux-${{ matrix.arch }}" | |
| - name: upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: udp-obfus-linux-${{ matrix.arch }} | |
| path: dist/udp-obfus-linux-${{ matrix.arch }} | |
| release: | |
| name: publish release | |
| needs: build | |
| runs-on: ubuntu-latest | |
| if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' | |
| steps: | |
| - name: download artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: dist | |
| merge-multiple: true | |
| - name: create release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag || github.ref_name }} | |
| generate_release_notes: true | |
| files: dist/udp-obfus-linux-* |