Skip to content

Commit

Permalink
Updated dockerfile and actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuldeep-kd committed Aug 6, 2023
1 parent c198cad commit 1732eee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout PR
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Show Branch SHA
run: ${{ github.event.pull_request.head.sha }}

- name: Build Docker Image
run: docker build -t moonlight-tizen .
run: docker build -t moonlight-tizen \
--build-arg PR_COMMIT_SHA=${{ github.event.pull_request.head.sha }} .

# - name: Run Docker Container
# run: docker run --rm html-cmake-app
Expand All @@ -25,5 +24,5 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: built-artifacts
path: /build/artifacts # Replace this with the actual path
path: build/widget/ # Replace this with the actual path

6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM ubuntu:22.04

# Declare the build argument
ARG PR_COMMIT_SHA
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC
RUN apt-get update && apt-get install -y \
Expand Down Expand Up @@ -53,8 +55,8 @@ RUN ./emsdk activate latest-fastcomp
WORKDIR ../..

# 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 https://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 Down

0 comments on commit 1732eee

Please sign in to comment.