Skip to content

Commit

Permalink
更新构建依赖并提交
Browse files Browse the repository at this point in the history
  • Loading branch information
wling-art committed Feb 15, 2024
1 parent 4599b3b commit 5962d90
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build_depends_and_submit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:
rm new_commits.txt
- name: Set Up Go
if: ${{ env.GITHUB_STATE == 'true' }}
if: ${{ env.GITHUB_STATE.new_commits == 'true' }}
uses: actions/setup-go@v2

- name: Configure Raknet
if: ${{ env.GITHUB_STATE == 'true' }}
if: ${{ env.GITHUB_STATE.new_commits == 'true' }}
run: |
mkdir configure_raknet_depends
cd configure_raknet_depends
Expand All @@ -52,11 +52,11 @@ jobs:
sudo sed -i "" "s/urrentProtocol byte = 11/urrentProtocol byte = 8/g" /Users/runner/go/pkg/mod/github.com/sandertv/[email protected]/conn.go
- name: Configure Makefile
if: ${{ env.GITHUB_STATE == 'true' }}
if: ${{ env.GITHUB_STATE.new_commits == 'true' }}
run: mv ci_cd_auto_build_depends/Makefile neomega_kernel/neomega/c_api

- name: Install Dependencies
if: ${{ env.GITHUB_STATE == 'true' }}
if: ${{ env.GITHUB_STATE.new_commits == 'true' }}
run: |
brew install mingw-w64
brew install messense/macos-cross-toolchains/x86_64-unknown-linux-gnu
Expand All @@ -65,14 +65,14 @@ jobs:
brew install make
- name: Build Connect Library
if: ${{ env.GITHUB_STATE == 'true' }}
if: ${{ env.GITHUB_STATE.new_commits == 'true' }}
run: |
cd neomega_kernel/neomega/c_api
make all
rm -rf libs/*.h
- name: Build Access Point
if: ${{ env.GITHUB_STATE == 'true' }}
if: ${{ env.GITHUB_STATE.new_commits == 'true' }}
run: |
cd neomega_kernel/neomega/entries/access_point_entry/cli
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o build/neomega_linux_access_point_amd64
Expand All @@ -82,7 +82,7 @@ jobs:
CGO_ENABLED=0 GOOS=android GOARCH=arm64 go build -o build/neomega_android_access_point_arm64
- name: Move Binary Files and Clean Up
if: ${{ env.GITHUB_STATE == 'true' }}
if: ${{ env.GITHUB_STATE.new_commits == 'true' }}
run: |
mv neomega_kernel/neomega/c_api/libs/* ./
mv neomega_kernel/neomega/entries/access_point_entry/cli/build/* ./
Expand All @@ -91,7 +91,7 @@ jobs:
rm -rf neomega_kernel
- name: Submit Changes
if: ${{ env.GITHUB_STATE == 'true' }}
if: ${{ env.GITHUB_STATE.new_commits == 'true' }}
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
Expand Down

0 comments on commit 5962d90

Please sign in to comment.