@@ -17,18 +17,18 @@ jobs:
1717 fail-fast : false
1818 matrix :
1919 include :
20- - name : Windows (Intel)
21- os : windows-2022
20+ # - name: Windows (Intel)
21+ # os: windows-2022
2222 - name : Windows (ARM)
2323 os : windows-11-arm
24- - name : Linux (Intel)
25- os : ubuntu-22.04
26- - name : Linux (ARM)
27- os : ubuntu-22.04-arm
28- - name : macOS (Intel)
29- os : macos-15-intel
30- - name : macOS (ARM)
31- os : macos-15
24+ # - name: Linux (Intel)
25+ # os: ubuntu-22.04
26+ # - name: Linux (ARM)
27+ # os: ubuntu-22.04-arm
28+ # - name: macOS (Intel)
29+ # os: macos-15-intel
30+ # - name: macOS (ARM)
31+ # os: macos-15
3232 env :
3333 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3434 APPLE_ID : ${{ secrets.APPLE_ID }}
@@ -84,88 +84,88 @@ jobs:
8484 run : bun run build
8585 - name : Release OpenCOR
8686 run : bun release
87- web_app :
88- if : ${{ github.repository == 'opencor/webapp' }}
89- name : Web app
90- runs-on : ubuntu-22.04
91- steps :
92- - name : Set the timezone to New Zealand
93- uses : szenius/set-timezone@v2.0
94- with :
95- timezoneLinux : ' Pacific/Auckland'
96- - name : Check out OpenCOR
97- uses : actions/checkout@v4
98- - name : Install Node.js
99- uses : actions/setup-node@v4
100- with :
101- node-version : ' lts/*'
102- - name : Install bun
103- run : npm install -g bun
104- - name : OpenCOR dependencies
105- run : bun install
106- - name : Build OpenCOR's Web app
107- env :
108- VITE_FIREBASE_API_KEY : ${{ secrets.VITE_FIREBASE_API_KEY }}
109- VITE_FIREBASE_MESSAGING_SENDER_ID : ${{ secrets.VITE_FIREBASE_MESSAGING_SENDER_ID }}
110- VITE_FIREBASE_APP_ID : ${{ secrets.VITE_FIREBASE_APP_ID }}
111- VITE_FIREBASE_MEASUREMENT_ID : ${{ secrets.VITE_FIREBASE_MEASUREMENT_ID }}
112- run : bun build:web
113- - name : Deploy to https://opencor.ws/app/
114- uses : milanmk/actions-file-deployer@master
115- with :
116- remote-protocol : sftp
117- remote-host : ${{ secrets.REMOTE_HOST }}
118- remote-user : ${{ secrets.REMOTE_USER }}
119- ssh-private-key : ${{ secrets.SSH_PRIVATE_KEY }}
120- local-path : ./src/renderer/dist
121- remote-path : /home/www/opencor.ws/app
122- sync : full
123- - name : Archive OpenCOR's Web app
124- run : bun archive:web
125- - name : Release OpenCOR's Web app
126- uses : softprops/action-gh-release@v2
127- with :
128- files : dist/OpenCOR-*-WebApp.tar.gz
129- npm :
130- runs-on : ubuntu-22.04
131- steps :
132- - name : Set the timezone to New Zealand
133- uses : szenius/set-timezone@v2.0
134- with :
135- timezoneLinux : ' Pacific/Auckland'
136- - name : Check out OpenCOR
137- uses : actions/checkout@v4
138- - name : Install Node.js
139- uses : actions/setup-node@v4
140- with :
141- node-version : ' lts/*'
142- registry-url : ' https://registry.npmjs.org'
143- - name : Update npm
144- # Install the latest version of npm since we need npm 11.5.1 or later to publish to npm using OIDC (see
145- # https://docs.npmjs.com/trusted-publishers).
146- run : npm install -g npm@latest
147- - name : Install bun
148- run : npm install -g bun
149- - name : OpenCOR dependencies
150- run : |
151- cd src/renderer
152- bun install
153- - name : Build OpenCOR as a component
154- env :
155- VITE_FIREBASE_API_KEY : ${{ secrets.VITE_FIREBASE_API_KEY }}
156- VITE_FIREBASE_MESSAGING_SENDER_ID : ${{ secrets.VITE_FIREBASE_MESSAGING_SENDER_ID }}
157- VITE_FIREBASE_APP_ID : ${{ secrets.VITE_FIREBASE_APP_ID }}
158- VITE_FIREBASE_MEASUREMENT_ID : ${{ secrets.VITE_FIREBASE_MEASUREMENT_ID }}
159- run : |
160- cd src/renderer
161- bun build:lib
162- - name : Publish OpenCOR
163- # bun cannot currently be used to publish to npm using OIDC (see https://github.com/oven-sh/bun/issues/22423 and
164- # https://github.com/oven-sh/bun/issues/15601), so we use npm instead. To publish using OIDC implies automatic
165- # provenance generation, so no need to specify --provenance (see https://docs.npmjs.com/trusted-publishers).
166- # Provenance requires "repository.url" in package.json to match the repository from which we are publishing. In
167- # our case, it means that we can only publish to npm from the "opencor/webapp" repository. (Provenance can be
168- # disabled, but we prefer to be open.)
169- run : |
170- cd src/renderer
171- npm publish --access public --no-git-checks
87+ # web_app:
88+ # if: ${{ github.repository == 'opencor/webapp' }}
89+ # name: Web app
90+ # runs-on: ubuntu-22.04
91+ # steps:
92+ # - name: Set the timezone to New Zealand
93+ # uses: szenius/set-timezone@v2.0
94+ # with:
95+ # timezoneLinux: 'Pacific/Auckland'
96+ # - name: Check out OpenCOR
97+ # uses: actions/checkout@v4
98+ # - name: Install Node.js
99+ # uses: actions/setup-node@v4
100+ # with:
101+ # node-version: 'lts/*'
102+ # - name: Install bun
103+ # run: npm install -g bun
104+ # - name: OpenCOR dependencies
105+ # run: bun install
106+ # - name: Build OpenCOR's Web app
107+ # env:
108+ # VITE_FIREBASE_API_KEY: ${{ secrets.VITE_FIREBASE_API_KEY }}
109+ # VITE_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.VITE_FIREBASE_MESSAGING_SENDER_ID }}
110+ # VITE_FIREBASE_APP_ID: ${{ secrets.VITE_FIREBASE_APP_ID }}
111+ # VITE_FIREBASE_MEASUREMENT_ID: ${{ secrets.VITE_FIREBASE_MEASUREMENT_ID }}
112+ # run: bun build:web
113+ # - name: Deploy to https://opencor.ws/app/
114+ # uses: milanmk/actions-file-deployer@master
115+ # with:
116+ # remote-protocol: sftp
117+ # remote-host: ${{ secrets.REMOTE_HOST }}
118+ # remote-user: ${{ secrets.REMOTE_USER }}
119+ # ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
120+ # local-path: ./src/renderer/dist
121+ # remote-path: /home/www/opencor.ws/app
122+ # sync: full
123+ # - name: Archive OpenCOR's Web app
124+ # run: bun archive:web
125+ # - name: Release OpenCOR's Web app
126+ # uses: softprops/action-gh-release@v2
127+ # with:
128+ # files: dist/OpenCOR-*-WebApp.tar.gz
129+ # npm:
130+ # runs-on: ubuntu-22.04
131+ # steps:
132+ # - name: Set the timezone to New Zealand
133+ # uses: szenius/set-timezone@v2.0
134+ # with:
135+ # timezoneLinux: 'Pacific/Auckland'
136+ # - name: Check out OpenCOR
137+ # uses: actions/checkout@v4
138+ # - name: Install Node.js
139+ # uses: actions/setup-node@v4
140+ # with:
141+ # node-version: 'lts/*'
142+ # registry-url: 'https://registry.npmjs.org'
143+ # - name: Update npm
144+ # # Install the latest version of npm since we need npm 11.5.1 or later to publish to npm using OIDC (see
145+ # # https://docs.npmjs.com/trusted-publishers).
146+ # run: npm install -g npm@latest
147+ # - name: Install bun
148+ # run: npm install -g bun
149+ # - name: OpenCOR dependencies
150+ # run: |
151+ # cd src/renderer
152+ # bun install
153+ # - name: Build OpenCOR as a component
154+ # env:
155+ # VITE_FIREBASE_API_KEY: ${{ secrets.VITE_FIREBASE_API_KEY }}
156+ # VITE_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.VITE_FIREBASE_MESSAGING_SENDER_ID }}
157+ # VITE_FIREBASE_APP_ID: ${{ secrets.VITE_FIREBASE_APP_ID }}
158+ # VITE_FIREBASE_MEASUREMENT_ID: ${{ secrets.VITE_FIREBASE_MEASUREMENT_ID }}
159+ # run: |
160+ # cd src/renderer
161+ # bun build:lib
162+ # - name: Publish OpenCOR
163+ # # bun cannot currently be used to publish to npm using OIDC (see https://github.com/oven-sh/bun/issues/22423 and
164+ # # https://github.com/oven-sh/bun/issues/15601), so we use npm instead. To publish using OIDC implies automatic
165+ # # provenance generation, so no need to specify --provenance (see https://docs.npmjs.com/trusted-publishers).
166+ # # Provenance requires "repository.url" in package.json to match the repository from which we are publishing. In
167+ # # our case, it means that we can only publish to npm from the "opencor/webapp" repository. (Provenance can be
168+ # # disabled, but we prefer to be open.)
169+ # run: |
170+ # cd src/renderer
171+ # npm publish --access public --no-git-checks
0 commit comments