Skip to content

Commit

Permalink
chore(ci): EFOptimizeContext does not support cross compile
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Nov 23, 2024
1 parent c1cffd4 commit 3ad3ee2
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,24 @@ jobs:
- name: Docker setup Buildx
uses: docker/setup-buildx-action@v3

- name: Prebuild project
run: |
npm i -g pnpm
dotnet build "GZCTF.csproj" -c Release -o build
- name: Publish project
run: |
dotnet publish "GZCTF.csproj" -c Release -o publish/linux/amd64 -r linux-x64 --no-self-contained /p:PublishReadyToRun=true
# ignore arm64 for non-release tags
if [ "${{ env.RELEASE }}" = "true" ]; then
dotnet publish "GZCTF.csproj" -c Release -o publish/linux/arm64 -r linux-arm64 --no-self-contained /p:PublishReadyToRun=true /p:EFOptimizeContext=false
fi
env:
VITE_APP_BUILD_TIMESTAMP: ${{ steps.datetime.outputs.time }}
VITE_APP_GIT_SHA: ${{ github.sha }}
VITE_APP_GIT_NAME: ${{ github.ref_name }}

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand All @@ -71,24 +89,6 @@ jobs:
username: ${{ secrets.ALIYUN_USER }}
password: ${{ secrets.ALIYUN_PASSWORD }}

- name: Prebuild project
run: |
npm i -g pnpm
dotnet build "GZCTF.csproj" -c Release -o build
- name: Publish project
run: |
dotnet publish "GZCTF.csproj" -c Release -o publish/linux/amd64 -r linux-x64 --no-self-contained /p:PublishReadyToRun=true
# ignore arm64 for non-release tags
if [ "${{ env.RELEASE }}" = "true" ]; then
dotnet publish "GZCTF.csproj" -c Release -o publish/linux/arm64 -r linux-arm64 --no-self-contained /p:PublishReadyToRun=true
fi
env:
VITE_APP_BUILD_TIMESTAMP: ${{ steps.datetime.outputs.time }}
VITE_APP_GIT_SHA: ${{ github.sha }}
VITE_APP_GIT_NAME: ${{ github.ref_name }}

- name: Docker metadata action
uses: docker/metadata-action@v5
id: meta
Expand Down

0 comments on commit 3ad3ee2

Please sign in to comment.