-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
77 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Ce workflow utilise des actions qui ne sont pas certifiées par GitHub. | ||
# Elles sont fournies par un tiers et régies par | ||
# des conditions d’utilisation du service, une politique de confidentialité et un support distincts. | ||
# documentation en ligne. | ||
|
||
# GitHub recommande d’épingler les actions à un SHA de commit. | ||
# Pour obtenir une version plus récente, vous devez mettre à jour le SHA. | ||
# Vous pouvez également référencer une balise ou une branche, mais l’action peut changer sans avertissement. | ||
|
||
name: Publish amd64/arm64 to docker Hub | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
push_to_registry: | ||
name: Push Docker image to Docker Hub | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v3.4.0 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v5 | ||
with: | ||
platforms: 'arm64' | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v2.1.0 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v4.4.0 | ||
with: | ||
images: ${{ secrets.DOCKER_IMAGE_NAME }}-x86 | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
platforms: linux/arm64, linux/amd64 | ||
push: true | ||
build-args: | | ||
MSVC_ARCH=x86 | ||
LLVM_ARCH=i686 | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include <windows.h> | ||
|
||
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, | ||
LPSTR lpCmdLine, int nCmdShow) | ||
{ | ||
MessageBoxW(NULL, | ||
L"Everything is working !", | ||
L"Hello World", MB_OK); | ||
return 0; | ||
} |