Skip to content

Commit

Permalink
try adding --platform to docker run command
Browse files Browse the repository at this point in the history
  • Loading branch information
shanedell committed Feb 7, 2025
1 parent f5d4498 commit f1076ac
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/build-native-docker/action.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
# Copyright (c) 2021 Concurrent Technologies Corporation.
#
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software is distributed under the License is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied. See the License for the specific language governing permissions and limitations under the License.
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software is distributed under the License is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied. See the License for the specific language governing permissions and limitations under the License.

---
name: Build Native
description: Reusable action for building native code using docker
inputs:
os-name:
description: 'OS Name (runs-on value)'
description: "OS Name (runs-on value)"
required: true
docker-image:
description: 'Docker image to use'
description: "Docker image to use"
required: true
library-filename:
description: 'Filename of library file (libomega_edit.so, libomega_edit.dylib or omega_edit.dll)'
description: "Filename of library file (libomega_edit.so, libomega_edit.dylib or omega_edit.dll)"
required: true
runs:
using: "composite"
Expand All @@ -34,6 +34,7 @@ runs:
shell: bash
run: |
docker run \
--platform linux/arm64/v8 \
--memory "12g" \
--cpus "3" \
-d \
Expand Down

0 comments on commit f1076ac

Please sign in to comment.