-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added tauri-apps/[email protected] * Changed to [email protected] As per tauri-apps/tauri-action#240 * Changed to [email protected] As per nilaysavant/mediocre#14 * Omit `install app dependencies and build it` * Changed distDir in tauri.conf.json The path previously was "Set automatically by Vue CLI plugin" I suspect this caused the error encountered in GH actions * Forgot to set configPath previously * Set distPath in workflow * Set projectPath * Build with yarn during workflow * Don't specify projectPath during workflow * Update workflow... again * Try different tauri config * Update .gitignore * Changed build command in workflow * Updated workflow * Added a cross-build workflow * Fixed indentation of workflow * For now, disable OS matrix for workflow * Change `yarn` to `yarn build` in workflow * Run `yarn install` in workflow * Install libudev-dev in workflow * Add .cargo/config.toml * Update actions-rs/[email protected] * Update node action * Update tauri.conf.json * Updated workflow * Switch to JonasKruckenberg/[email protected] * Fixed error * Install libudev-dev during workflow * Fixed artifact uploading * Fixed typo * Remove `ls` and `echo` from workflow * Updated Ubuntu version * Install `lld` in workflow * Install `lld` in workflow * Add `libinput-dev` to dependencies for workflow * Add `libinput-dev` to dependencies for workflow * Don't install lld and set CARGO_TARGET_DIR Also cross-compile using an OS matrix * Only use `apt` on Ubuntu in workflow * Fixed artifact upload + added releasing * Fixed GITHUB.WORKSPACE env * Changed `ubuntu-22.04` to `ubuntu-latest` * Changed apt command in workflow * Don't compress binaries in workflow * Fix (commented out) zip command * Use multiple jobs to ensure upload of all files * Tried to fix YML error * Tried to fix YAML error... again * Fix uploading of artifact in workflow * Changed GITHUB_WORKSPACE to GITHUB.WORKSPACE * Fixed another occurence of the wrong env syntax * Require build-binaries to run first in workflow * Fixed upload-binaries * Added wildcard to binary upload path * Fixed wildcard path in workflow... hopefully * Upload binaries.zip, but not build-appimage.sh * Add a build workflow which doesn't release * Renamed `Build Binaries` workflow to `Build`
- Loading branch information
1 parent
5c62d80
commit 9e9a253
Showing
5 changed files
with
181 additions
and
21,239 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: 'Build' | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-binaries: | ||
name: 'Build binaries' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [ ubuntu-latest, windows-latest] | ||
# runs-on: ubuntu-22.04 | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: setup node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 17 | ||
- name: install Rust stable | ||
uses: actions-rs/[email protected] | ||
with: | ||
toolchain: stable | ||
# https://tauri.app/v1/guides/getting-started/prerequisites/ | ||
- name: Update repositories (Ubuntu only) | ||
if: matrix.platform == 'ubuntu-latest' | ||
run: sudo apt-get update | ||
- name: Install dependencies (Ubuntu only) | ||
if: matrix.platform == 'ubuntu-latest' | ||
run: sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf libudev-dev lld libinput-dev | ||
- run: yarn install | ||
- run: yarn build | ||
- run: yarn tauri build | ||
- uses: actions/upload-artifact@master | ||
with: | ||
name: binaries | ||
path: ${{ GITHUB.WORKSPACE }}/src-tauri/target/release/bundle/*/codemacros* | ||
|
||
# - name: Compress releases | ||
# run: zip -r /home/runner/work/code-macros/binaries.zip $GITHUB_WORKSPACE/src-tauri/target/release/bundle/*/codemacros* | ||
# - name: Delete old release | ||
# uses: Archaholic/action-delete-release@v1 | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# with: | ||
# tag_name: rolling | ||
# - name: Update tag | ||
# uses: EndBug/latest-tag@latest | ||
# with: | ||
# ref: rolling | ||
# - name: Release | ||
# uses: softprops/action-gh-release@v1 | ||
# with: | ||
# name: Rolling release | ||
# prerelease: true | ||
# tag_name: rolling | ||
# body: "Latest commit: ${{ github.event.head_commit.message }}" | ||
# # files: | | ||
# # /home/runner/work/code-macros/binaries.zip | ||
# # ${{ GITHUB.WORKSPACE }}/src-tauri/target/release/bundle/*/codemacros* | ||
# files: ${{ GITHUB.WORKSPACE }}/src-tauri/target/release/bundle/*/codemacros* | ||
# - name: Upload Artifacts | ||
# uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: binaries | ||
# path: ${{ GITHUB.WORKSPACE }}/src-tauri/target/release/bundle/*/codemacros* |
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 |
---|---|---|
@@ -0,0 +1,108 @@ | ||
name: 'Continuous Integration' | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- adding-build-workflows # For testing | ||
- build-workflow-manual # For testing | ||
# workflow_dispatch: | ||
|
||
|
||
jobs: | ||
build-binaries: | ||
name: 'Build binaries' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [ ubuntu-latest, windows-latest] | ||
# runs-on: ubuntu-22.04 | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: setup node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 17 | ||
- name: install Rust stable | ||
uses: actions-rs/[email protected] | ||
with: | ||
toolchain: stable | ||
# https://tauri.app/v1/guides/getting-started/prerequisites/ | ||
- name: Update repositories (Ubuntu only) | ||
if: matrix.platform == 'ubuntu-latest' | ||
run: sudo apt-get update | ||
- name: Install dependencies (Ubuntu only) | ||
if: matrix.platform == 'ubuntu-latest' | ||
run: sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf libudev-dev lld libinput-dev | ||
- run: yarn install | ||
- run: yarn build | ||
- run: yarn tauri build | ||
- uses: actions/upload-artifact@master | ||
with: | ||
name: binaries | ||
path: ${{ GITHUB.WORKSPACE }}/src-tauri/target/release/bundle/*/codemacros* | ||
|
||
# - name: Compress releases | ||
# run: zip -r /home/runner/work/code-macros/binaries.zip $GITHUB_WORKSPACE/src-tauri/target/release/bundle/*/codemacros* | ||
# - name: Delete old release | ||
# uses: Archaholic/action-delete-release@v1 | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# with: | ||
# tag_name: rolling | ||
# - name: Update tag | ||
# uses: EndBug/latest-tag@latest | ||
# with: | ||
# ref: rolling | ||
# - name: Release | ||
# uses: softprops/action-gh-release@v1 | ||
# with: | ||
# name: Rolling release | ||
# prerelease: true | ||
# tag_name: rolling | ||
# body: "Latest commit: ${{ github.event.head_commit.message }}" | ||
# # files: | | ||
# # /home/runner/work/code-macros/binaries.zip | ||
# # ${{ GITHUB.WORKSPACE }}/src-tauri/target/release/bundle/*/codemacros* | ||
# files: ${{ GITHUB.WORKSPACE }}/src-tauri/target/release/bundle/*/codemacros* | ||
# - name: Upload Artifacts | ||
# uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: binaries | ||
# path: ${{ GITHUB.WORKSPACE }}/src-tauri/target/release/bundle/*/codemacros* | ||
upload-binaries: | ||
needs: build-binaries | ||
name: 'Upload binaries' | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/download-artifact@master | ||
with: | ||
name: binaries | ||
path: ${{ GITHUB.WORKSPACE }}/binaries | ||
- name: Compress releases | ||
run: zip -r /home/runner/work/code-macros/binaries.zip $GITHUB_WORKSPACE/binaries/* | ||
- name: Delete old release | ||
uses: Archaholic/action-delete-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: rolling | ||
- name: Update tag | ||
uses: EndBug/latest-tag@latest | ||
with: | ||
ref: rolling | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
name: Rolling release | ||
prerelease: true | ||
tag_name: rolling | ||
body: "Latest commit: ${{ github.event.head_commit.message }}" | ||
# files: | | ||
# /home/runner/work/code-macros/binaries.zip | ||
# ${{ GITHUB.WORKSPACE }}/src-tauri/target/release/bundle/*/codemacros* | ||
files: | | ||
${{ GITHUB.WORKSPACE }}/binaries/*/* | ||
/home/runner/work/code-macros/binaries.zip |
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 |
---|---|---|
|
@@ -21,3 +21,6 @@ pnpm-debug.log* | |
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
.github/workflows/cross-build-test.yaml | ||
src-tauri/tauri.conf.json.bak |
Oops, something went wrong.