Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update index.html #1

Open
wants to merge 10 commits into
base: samsung_wasm
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,30 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout PR
- name: Checkout Repository
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
ref: ${{ github.event.pull_request.head.sha }} # Checkout the PR branch commit

- name: Create Archive
run: |
mkdir -p app
mv * app/ || true
zip -r app.zip app

- name: Build Docker Image
run: docker build -t moonlight-tizen .
run: |
cd app
docker build -t moonlight-tizen --build-arg APP_ARCHIVE=app.zip .

# - name: Run Docker Container
# run: docker run --rm html-cmake-app
- name: Create and Copy Artifacts
run: |
mkdir -p artifacts
docker run --rm -v $(pwd)/artifacts:/build/widget moonlight-tizen

- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: built-artifacts
path: /build/artifacts # Replace this with the actual path
path: artifacts # Upload the artifacts directory

13 changes: 11 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
FROM ubuntu:22.04

# Declare the build argument for the app archive
ARG APP_ARCHIVE
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC
RUN pwd
RUN ls
RUN find "/" -name "app.zip" -print
RUN apt-get update && apt-get install -y \
cmake \
expect \
Expand Down Expand Up @@ -52,9 +57,11 @@ WORKDIR emscripten-release-bundle/emsdk
RUN ./emsdk activate latest-fastcomp
WORKDIR ../..

RUN unzip $APP_ARCHIVE

# Build moonlight
#RUN git clone --recurse-submodules --depth 1 https://github.com/KyroFrCode/moonlight-chrome-tizen
RUN git clone https://github.com/KyroFrCode/moonlight-chrome-tizen
# RUN git clone --recurse-submodules --depth 1 git@github.com:Kuldeep-kd/moonlight-tizen.git#${PR_COMMIT_SHA}
# RUN git clone https://github.com/KyroFrCode/moonlight-chrome-tizen

RUN cmake \
-DCMAKE_TOOLCHAIN_FILE=/home/moonlight/emscripten-release-bundle/emsdk/fastcomp/emscripten/cmake/Modules/Platform/Emscripten.cmake \
Expand All @@ -79,6 +86,8 @@ RUN echo \
'expect eof\n' \
| expect

EXPOSE 80

# Optional; remove unneed files
RUN mv build/widget/MoonlightWasm.wgt .
#RUN rm -rf \
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Moonlight</title>
<title>Tizen Moonlight</title>
<link rel="stylesheet" href="static/css/roboto.css">
<link rel="stylesheet" href="static/css/material.min.css">
<link rel="stylesheet" href="static/css/style.css">
Expand Down
Loading