Skip to content

Commit

Permalink
up 2023-10-30
Browse files Browse the repository at this point in the history
  • Loading branch information
hktalent committed Oct 30, 2023
1 parent 7471d50 commit 6418f65
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ jobs:
- name: Install Dependences
run: |
brew install libpcap upx
chmod +x .github/workflows/upx.sh
# git submodule update --init --recursive --remote
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release -f .github/build/mac.yml --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# https://github.com/marketplace/actions/run-on-architecture#supported-platforms
build-linux:
runs-on: ubuntu-latest
steps:
Expand All @@ -39,15 +40,16 @@ jobs:
with:
submodules: recursive
fetch-depth: 0
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21.3
- name: Install Dependencies
- name: Install Dependences
run: |
sudo apt-get update
sudo apt install -yy libpcap-dev upx
chmod +x .github/workflows/upx.sh
sudo apt install -yy --fix-missing libpcap-dev upx
# git submodule update --init --recursive --remote
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand All @@ -66,6 +68,13 @@ jobs:
fetch-depth: 0
- name: Checkout submodules
run: git submodule update --init --recursive
# - name: Install upx
# run: |
# mkdir upx
# [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
# Invoke-WebRequest "https://github.com/upx/upx/releases/download/v3.96/upx-3.96-win32.zip" -OutFile "upx.zip"
# Expand-Archive upx.zip -DestinationPath upx
# setx PATH "$env:PATH;$(Get-Location)/upx/x86_64-w64-mingw32"
- name: Set up Go
uses: actions/setup-go@v2
with:
Expand Down

0 comments on commit 6418f65

Please sign in to comment.