-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/copy_screenshot_to_xochitl
- Loading branch information
Showing
205 changed files
with
8,046 additions
and
2,310 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,15 @@ name: Build oxide | |
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'applications/**' | ||
- 'shared/**' | ||
- 'assets/**' | ||
- 'interfaces/**' | ||
- 'qmake/**' | ||
- 'oxide.pro' | ||
- 'Makefile' | ||
- 'package' | ||
pull_request: | ||
|
@@ -15,48 +19,27 @@ on: | |
- 'shared/**' | ||
- 'assets/**' | ||
- 'interfaces/**' | ||
- 'qmake/**' | ||
- 'oxide.pro' | ||
- 'Makefile' | ||
- 'package' | ||
jobs: | ||
build: | ||
name: Build and package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout toltec Git repository | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: toltec-dev/toltec.git | ||
ref: testing | ||
- name: Cleanup | ||
run: | | ||
rm -rf package/oxide/* | ||
mkdir package/oxide/src | ||
- uses: actions/[email protected] | ||
with: | ||
path: package/oxide/src | ||
- uses: actions/checkout@v3 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.8' | ||
- name: Setup Toltec dependencies | ||
uses: ./.github/actions/setup | ||
- name: Prepare build files | ||
run: | | ||
cd package/oxide/src | ||
echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" > ../version.txt | ||
sed -i "s/~VERSION~/$(cat ../version.txt)/" ./package | ||
mv ./package .. | ||
tar --exclude='./.git' -czvf ../oxide.tar.gz . | ||
python-version: 3.9 | ||
- name: Install toltecmk | ||
run: pip install toltecmk | ||
- name: Build packages | ||
run: | | ||
make FLAGS=--verbose oxide | ||
mkdir output | ||
find . -name '*.ipk' | while read -r file; do | ||
cp "$file" output/"$(basename $file)" | ||
done | ||
run: make package | ||
timeout-minutes: 15 | ||
- name: Save packages | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: packages | ||
path: output | ||
path: release |
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,48 @@ | ||
name: Build with Nix | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'applications/**' | ||
- 'shared/**' | ||
- 'assets/**' | ||
- 'interfaces/**' | ||
- 'qmake/**' | ||
- 'oxide.pro' | ||
- 'Makefile' | ||
- '*.nix' | ||
pull_request: | ||
paths: | ||
- 'applications/**' | ||
- 'shared/**' | ||
- 'assets/**' | ||
- 'interfaces/**' | ||
- 'qmake/**' | ||
- 'oxide.pro' | ||
- 'Makefile' | ||
- '*.nix' | ||
jobs: | ||
nix-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: cachix/install-nix-action@v18 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
- uses: cachix/cachix-action@v12 | ||
with: | ||
name: nix-remarkable | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
- name: Build | ||
run: nix-build --argstr system 'x86_64-linux' | ||
timeout-minutes: 15 | ||
- run: | | ||
mkdir output | ||
cp -a result/. output/ | ||
- name: Save Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: output | ||
path: output |
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 |
---|---|---|
|
@@ -6,3 +6,7 @@ release/ | |
applications/*/Makefile | ||
result | ||
*.orig | ||
oxide.tar.gz | ||
build/ | ||
dist/ | ||
version.txt |
Oops, something went wrong.