]> git.puffer.fish Git - matthieu/nova.git/commitdiff
build for more platforms
authorMatthieuCoder <matthieu@matthieu-dev.xyz>
Sat, 14 Jan 2023 16:27:13 +0000 (20:27 +0400)
committerMatthieuCoder <matthieu@matthieu-dev.xyz>
Sat, 14 Jan 2023 16:27:13 +0000 (20:27 +0400)
.github/workflows/build.yml
.github/workflows/docker-publish.yml
exes/rest/src/handler.rs

index 2747168d6a0fffcd4d645f37048cc8c63a4223bb..1d606edf90e857a13145e250b3df1a9f20957967 100644 (file)
@@ -96,7 +96,7 @@ jobs:
           mingw32-make.exe all
       - uses: actions/upload-artifact@v3
         with:
-          name: macos
+          name: windows
           path: build/*
 
   build_linux:
index ea7f567d6c02bf8e099f513544b219543ef54d2a..5e5ad4aa318d0a9231f78b8d34c31cc71e167a8a 100644 (file)
@@ -15,9 +15,12 @@ jobs:
       -
         name: Checkout
         uses: actions/checkout@v3
-      -
-        name: Set up Docker Buildx
+
+      - name: Set up QEMU
+        uses: docker/setup-qemu-action@v2
+      - name: Set up Docker Buildx
         uses: docker/setup-buildx-action@v2
+
         
       - name: Log into registry ${{ env.REGISTRY }}
         uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
index ab158fe820e7ee54f22b3245dee0dd070c51d4c3..f053af73c3793442523385ca944543ff35a9b2bd 100644 (file)
@@ -58,7 +58,7 @@ pub async fn handle_request(
         let request_path = request.uri().path();
         let (api_path, trimmed_path) = normalize_path(request_path);
 
-        let mut uri_string = format!("http://127.0.0.1:9999{api_path}{trimmed_path}");
+        let mut uri_string = format!("https://discord.com{api_path}{trimmed_path}");
         if let Some(query) = request.uri().query() {
             uri_string.push('?');
             uri_string.push_str(query);