Skip to content

Commit 01b21e3

Browse files
committed
ci: reenable macos and web
1 parent 8fbed44 commit 01b21e3

File tree

1 file changed

+109
-109
lines changed

1 file changed

+109
-109
lines changed

.github/workflows/publish.yml

Lines changed: 109 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -10,78 +10,78 @@ env:
1010
REPOSILITE_PASSWORD: ${{ secrets.REPOSILITE_PASSWORD }}
1111
REPOSILITE_URL: "https://reposilite.silenium.dev/releases"
1212
jobs:
13-
# macos:
14-
# runs-on: macos-11
15-
# steps:
16-
# - uses: actions/checkout@v3
17-
# name: 'Check out code'
18-
#
19-
# - uses: actions/setup-java@v3
20-
# name: 'Set up JDK 11'
21-
# with:
22-
# distribution: 'adopt'
23-
# java-version: '11'
24-
# cache: 'gradle'
25-
#
26-
# - shell: bash
27-
# name: 'Publish to Reposilite'
28-
# run: |
29-
# ./gradlew --stacktrace --info -Pskiko.native.enabled=true :skiko:publish
30-
#
31-
# iOS:
32-
# runs-on: macos-13
33-
# steps:
34-
# - uses: actions/checkout@v3
35-
# name: 'Check out code'
36-
#
37-
# - uses: actions/setup-java@v3
38-
# name: 'Set up JDK 11'
39-
# with:
40-
# distribution: 'adopt'
41-
# java-version: '11'
42-
# cache: 'gradle'
43-
#
44-
# - name: 'Print the devices list'
45-
# run: xcrun simctl list devices available --json
46-
#
47-
# # install jq - cli tool for json querying
48-
# # retrieve the device .udid to use in tests and store it in env var
49-
# - name: 'Set Up Simulator UUID'
50-
# run: |
51-
# brew install jq &&
52-
# IOS_SIM_UUID=$(xcrun simctl list devices available --json | jq -r '.devices."com.apple.CoreSimulator.SimRuntime.iOS-17-0"[] | select(.name == "iPhone 14") | .udid') &&
53-
# echo "IOS_SIM_UUID=$IOS_SIM_UUID" >> $GITHUB_ENV
54-
#
55-
# - name: 'Print Selected UUID'
56-
# run: echo $IOS_SIM_UUID
57-
#
58-
# # TODO run iOS specific tests on iPhone simulator
59-
# - shell: bash
60-
# name: 'Publish to Reposilite'
61-
# run: ./gradlew --stacktrace --info -Pskiko.native.enabled=true :skiko:publish
62-
#
63-
# tvOS:
64-
# # TVOS requires macos 13
65-
# runs-on: macos-13
66-
# # Steps represent a sequence of tasks that will be executed as part of the job
67-
# steps:
68-
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
69-
# - uses: actions/checkout@v2
70-
# - uses: actions/setup-java@v2
71-
# with:
72-
# distribution: 'adopt'
73-
# java-version: '11'
74-
# - shell: bash
75-
# run: |
76-
# ./gradlew --stacktrace --info -Pskiko.native.enabled=true -Pskiko.test.onci=true :skiko:publish
13+
macos:
14+
runs-on: macos-13
15+
steps:
16+
- uses: actions/checkout@v4
17+
name: 'Check out code'
18+
19+
- uses: actions/setup-java@v4
20+
name: 'Set up JDK 11'
21+
with:
22+
distribution: 'adopt'
23+
java-version: '11'
24+
cache: 'gradle'
25+
26+
- shell: bash
27+
name: 'Publish to Reposilite'
28+
run: |
29+
./gradlew --stacktrace --info -Pskiko.native.enabled=true :skiko:publish
30+
31+
iOS:
32+
runs-on: macos-13
33+
steps:
34+
- uses: actions/checkout@v4
35+
name: 'Check out code'
36+
37+
- uses: actions/setup-java@v4
38+
name: 'Set up JDK 11'
39+
with:
40+
distribution: 'adopt'
41+
java-version: '11'
42+
cache: 'gradle'
43+
44+
- name: 'Print the devices list'
45+
run: xcrun simctl list devices available --json
46+
47+
# install jq - cli tool for json querying
48+
# retrieve the device .udid to use in tests and store it in env var
49+
- name: 'Set Up Simulator UUID'
50+
run: |
51+
brew install jq &&
52+
IOS_SIM_UUID=$(xcrun simctl list devices available --json | jq -r '.devices."com.apple.CoreSimulator.SimRuntime.iOS-17-0"[] | select(.name == "iPhone 14") | .udid') &&
53+
echo "IOS_SIM_UUID=$IOS_SIM_UUID" >> $GITHUB_ENV
54+
55+
- name: 'Print Selected UUID'
56+
run: echo $IOS_SIM_UUID
57+
58+
# TODO run iOS specific tests on iPhone simulator
59+
- shell: bash
60+
name: 'Publish to Reposilite'
61+
run: ./gradlew --stacktrace --info -Pskiko.native.enabled=true :skiko:publish
62+
63+
tvOS:
64+
# TVOS requires macos 13
65+
runs-on: macos-13
66+
# Steps represent a sequence of tasks that will be executed as part of the job
67+
steps:
68+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
69+
- uses: actions/checkout@v4
70+
- uses: actions/setup-java@v4
71+
with:
72+
distribution: 'adopt'
73+
java-version: '11'
74+
- shell: bash
75+
run: |
76+
./gradlew --stacktrace --info -Pskiko.native.enabled=true -Pskiko.test.onci=true :skiko:publish
7777
7878
linux:
7979
runs-on: ubuntu-20.04
8080
steps:
81-
- uses: actions/checkout@v3
81+
- uses: actions/checkout@v4
8282
name: 'Check out code'
8383

84-
- uses: actions/setup-java@v3
84+
- uses: actions/setup-java@v4
8585
name: 'Set up JDK 11'
8686
with:
8787
distribution: 'adopt'
@@ -125,14 +125,14 @@ jobs:
125125
windows:
126126
runs-on: windows-2019
127127
steps:
128-
- uses: actions/checkout@v3
128+
- uses: actions/checkout@v4
129129
name: 'Check out code'
130130

131131
- uses: microsoft/setup-msbuild@v1
132132

133133
- uses: ilammy/msvc-dev-cmd@v1
134134

135-
- uses: actions/setup-java@v3
135+
- uses: actions/setup-java@v4
136136
name: 'Set up JDK 11'
137137
with:
138138
distribution: 'adopt'
@@ -143,44 +143,44 @@ jobs:
143143
name: 'Publish to Reposilite'
144144
run: |
145145
./gradlew --stacktrace --info -Pdeploy.release=true -Pdeploy.version=${{github.ref_name}}-egl :skiko:publish -x :skiko:publishKotlinMultiplatformPublicationToReposiliteRepository -x :skiko:publishAwtPublicationToReposiliteRepository
146-
# web:
147-
# runs-on: ubuntu-20.04
148-
# steps:
149-
# - uses: browser-actions/setup-chrome@v1
150-
# with:
151-
# chrome-version: stable
152-
# id: setup-chrome
153-
# - uses: actions/checkout@v2
154-
# - uses: actions/setup-java@v2
155-
# with:
156-
# distribution: 'adopt'
157-
# java-version: '11'
158-
# - name: Install dependencies
159-
# run: |
160-
# sudo apt-get update
161-
# sudo apt-get install libdbus-1-dev
162-
# - name: 'install emsdk'
163-
# shell: bash
164-
# run: |
165-
# cd ./skiko
166-
# sudo apt-get update -y
167-
# sudo apt-get install binutils build-essential -y
168-
# sudo apt-get install software-properties-common -y
169-
# sudo apt-get install python git curl wget -y
170-
# if [ -d ./emsdk ]; then
171-
# cd ./emsdk
172-
# git pull
173-
# else
174-
# git clone https://github.com/emscripten-core/emsdk.git
175-
# cd ./emsdk
176-
# fi
177-
# ./emsdk install 3.1.49
178-
# ./emsdk activate 3.1.49
179-
# source ./emsdk_env.sh
180-
# cd ..
181-
# - name: 'Publish to Reposilite'
182-
# shell: bash
183-
# run: |
184-
# cd ./skiko
185-
# source ./emsdk/emsdk_env.sh
186-
# ./gradlew --stacktrace --info -Pskiko.wasm.enabled=true -Pskiko.js.enabled=true publish
146+
web:
147+
runs-on: ubuntu-20.04
148+
steps:
149+
- uses: browser-actions/setup-chrome@v1
150+
with:
151+
chrome-version: stable
152+
id: setup-chrome
153+
- uses: actions/checkout@v4
154+
- uses: actions/setup-java@v4
155+
with:
156+
distribution: 'adopt'
157+
java-version: '11'
158+
- name: Install dependencies
159+
run: |
160+
sudo apt-get update
161+
sudo apt-get install libdbus-1-dev
162+
- name: 'install emsdk'
163+
shell: bash
164+
run: |
165+
cd ./skiko
166+
sudo apt-get update -y
167+
sudo apt-get install binutils build-essential -y
168+
sudo apt-get install software-properties-common -y
169+
sudo apt-get install python git curl wget -y
170+
if [ -d ./emsdk ]; then
171+
cd ./emsdk
172+
git pull
173+
else
174+
git clone https://github.com/emscripten-core/emsdk.git
175+
cd ./emsdk
176+
fi
177+
./emsdk install 3.1.49
178+
./emsdk activate 3.1.49
179+
source ./emsdk_env.sh
180+
cd ..
181+
- name: 'Publish to Reposilite'
182+
shell: bash
183+
run: |
184+
cd ./skiko
185+
source ./emsdk/emsdk_env.sh
186+
./gradlew --stacktrace --info -Pskiko.wasm.enabled=true -Pskiko.js.enabled=true publish

0 commit comments

Comments
 (0)