-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use docker containers for all linux workflow runs
- Loading branch information
Showing
8 changed files
with
203 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ on: | |
jobs: | ||
create-release: | ||
runs-on: self-hosted | ||
container: "ubuntu:22.04" | ||
outputs: | ||
upload_url: ${{ steps.create-release.outputs.upload_url }} | ||
|
||
|
@@ -38,11 +39,12 @@ jobs: | |
draft: true | ||
prerelease: false | ||
|
||
build-launcher-binary: | ||
build-launcher-binary-linux: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [self-hosted, macos-latest, windows-latest] | ||
platform: [self-hosted] | ||
container: ["ubuntu:22.04"] | ||
node-version: [18.17.0] | ||
|
||
needs: | ||
|
@@ -78,14 +80,6 @@ jobs: | |
sudo apt-get update | ||
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf protobuf-compiler | ||
- name: install dependencies (macos only) | ||
if: matrix.platform == 'macos-latest' | ||
run: brew install protobuf cmake | ||
|
||
- name: install dependencies (windows only) | ||
if: matrix.platform == 'windows-latest' | ||
run: choco install protoc cmake | ||
|
||
- name: get version | ||
run: echo "PACKAGE_VERSION=$(node -p "require('./ui/package.json').version")" >> $GITHUB_ENV | ||
|
||
|
@@ -114,15 +108,6 @@ jobs: | |
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }} | ||
run: yarn run package-ad4m | ||
|
||
- name: Build AD4M-CLI & build Launcher binary (windows-latest) | ||
if: matrix.platform == 'windows-latest' | ||
env: | ||
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | ||
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} | ||
run: | | ||
choco install curl cygwin gnuwin32-m4 libgcc make mingw | ||
yarn run package-ad4m | ||
- name: Upload Release Deb Asset | ||
id: upload-release-deb-asset | ||
if: matrix.platform == 'self-hosted' | ||
|
@@ -149,7 +134,7 @@ jobs: | |
|
||
- name: Upload Release AppImage Update Asset | ||
id: upload-release-appimage-asset-update | ||
if: matrix.platform == 'ubuntu-latest' | ||
if: matrix.platform == 'self-hosted' | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -161,7 +146,7 @@ jobs: | |
|
||
- name: Upload Release AppImage update sig Asset | ||
id: upload-release-appimage-asset-update-sig | ||
if: matrix.platform == 'ubuntu-latest' | ||
if: matrix.platform == 'self-hosted' | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -183,6 +168,85 @@ jobs: | |
asset_name: ad4m-linux-${{ steps.extract_version.outputs.version }}-x64 | ||
asset_content_type: application/octet-stream | ||
|
||
build-launcher-binary-others: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [macos-latest, windows-latest] | ||
node-version: [18.17.0] | ||
|
||
needs: | ||
- create-release | ||
- npm-publish | ||
|
||
runs-on: ${{ matrix.platform }} | ||
|
||
steps: | ||
- name: Fetch source code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Rust stable | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
override: true | ||
toolchain: 1.71.1 | ||
|
||
- name: Install GO | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.18' | ||
|
||
- name: Install Deno | ||
uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: v1.32.4 | ||
- run: rustup target add wasm32-unknown-unknown | ||
|
||
- name: install dependencies (macos only) | ||
if: matrix.platform == 'macos-latest' | ||
run: brew install protobuf cmake | ||
|
||
- name: install dependencies (windows only) | ||
if: matrix.platform == 'windows-latest' | ||
run: choco install protoc cmake | ||
|
||
- name: get version | ||
run: echo "PACKAGE_VERSION=$(node -p "require('./ui/package.json').version")" >> $GITHUB_ENV | ||
|
||
- name: Extract version | ||
id: extract_version | ||
uses: Saionaro/[email protected] | ||
with: | ||
path: ui | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Yarn Install | ||
run: yarn install | ||
|
||
- name: Build AD4M-CLI & build Launcher binary (macos/linux-latest) | ||
if: matrix.platform != 'windows-latest' | ||
env: | ||
ENABLE_CODE_SIGNING: ${{ secrets.APPLE_CERTIFICATE }} | ||
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} | ||
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} | ||
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }} | ||
APPLE_ID: ${{ secrets.APPLE_ID }} | ||
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }} | ||
run: yarn run package-ad4m | ||
|
||
- name: Build AD4M-CLI & build Launcher binary (windows-latest) | ||
if: matrix.platform == 'windows-latest' | ||
env: | ||
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | ||
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} | ||
run: | | ||
choco install curl cygwin gnuwin32-m4 libgcc make mingw | ||
yarn run package-ad4m | ||
- name: Upload Release Macos Asset | ||
id: upload-release-macos-asset | ||
if: matrix.platform == 'macos-latest' | ||
|
@@ -281,6 +345,7 @@ jobs: | |
|
||
npm-publish: | ||
runs-on: self-hosted | ||
container: "ubuntu:22.04" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
# Setup .npmrc file to publish to npm | ||
|
@@ -331,6 +396,7 @@ jobs: | |
|
||
crates-publish: | ||
runs-on: self-hosted | ||
container: "ubuntu:22.04" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
|
Oops, something went wrong.